Home > @poq/transform
Poq Transform is utility that helps to transform json or plain js objects into typed one and back.
Classes
Class |
Description |
AbstractConverter |
Abstract converter class defines interface and base type of custom converter for types. |
DateConverter |
Defines logic of handling date type during conversion process. |
MapConverter |
Defines logic of handling Map/Dictionary type during conversion process. |
Transformer |
Transformer class includes different helpers to transform plain objects into typed and back. |
TypeArrayConverter |
Defines logic of handling array’s subtype during conversion process. |
TypeConverter |
Defines logic of handling subtype during conversion process. |
Variables
Variable |
Description |
TProperty |
Decorator is used to mark properties of class/type as important to transform. |
Transformable |
Decorator is used to mark class/type as transformable. |
Type Aliases
Type Alias |
Description |
Ctor |
Type utility to define class/type constructors. |
Indexed |
Type utility to defines type which properties can be accessed via indexing. |
PlainObj |
Type utility to define plain js object with non-typed properties. |
Primitive |
Type utility to union string, boolean, and number. |
TransformerConfig |
Defines configuration for property that explains how to transform it. |
TransformOptions |
Options for transformation process. |