Poq.SDK.Node

Home > @poq/transform > DateConverter > toType

DateConverter.toType() method

Method transforms plain representation into instance of class/type.

Signature:

toType(_transformer: typeof Transformer, item: string): Date;

Parameters

Parameter Type Description
_transformer typeof Transformer  
item string Plain representation of value to transform into typed one.

Returns:

Date

Returns instance of class/type.