Home > @poq/transform > DateConverter > toType
Method transforms plain representation into instance of class/type.
Signature:
toType(_transformer: typeof Transformer, item: string): Date;
Parameter | Type | Description |
---|---|---|
_transformer | typeof Transformer | |
item | string | Plain representation of value to transform into typed one. |
Returns:
Date
Returns instance of class/type.