Home > @poq/transform > TypeArrayConverter > toType
Method transforms plain representation into instance of class/type.
Signature:
toType(transformer: typeof Transformer, items: PlainObj[], options?: TransformOptions): InstanceType<Ctor>[];
| Parameter | Type | Description |
|---|---|---|
| transformer | typeof Transformer | Reference to transformer static class |
| items | PlainObj[] | |
| options | TransformOptions | (Optional) |
Returns:
InstanceType<Ctor>[]
Returns instance of class/type.