Home > @poq/transform > AbstractConverter
Abstract converter class defines interface and base type of custom converter for types.
Signature:
export declare abstract class AbstractConverter<P extends Indexed<any> | Primitive = Indexed<any>, S extends Indexed<any> = Indexed<any>>
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(type) | Constructs a new instance of the AbstractConverter class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| type | Ctor |
| Method | Modifiers | Description |
|---|---|---|
| isConverter(value) | static |
Helper detects whether passed value expands AbstractConverter. |
| toPlain(transformer, item, options) | Method transforms instance of class/type into plain representation. | |
| toType(transformer, item, options) | Method transforms plain representation into instance of class/type. |