toTypeEx
[ Function ]
public static toTypeEx<T>(
value: any,
typeName: string,
options?: {
readonly convertDirection?: ValueConverter.ConvertDirection;
}
): ValueConverter.IResultObject<T>;
Converts any compatible value to a type defined by a type schema.
Parameter
Name | Type | Description |
---|---|---|
value | The value to convert. | |
typeName | The name of the type schema. | |
options [ optional ] | { | Settings |
Return value
Type | Description |
---|---|
Result object |
Available from version 1.12 |