Poq.SDK.Node

Home > @poq/transform > AbstractConverter

AbstractConverter class

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>> 

Constructors

Constructor Modifiers Description
(constructor)(type)   Constructs a new instance of the AbstractConverter class

Properties

Property Modifiers Type Description
type   Ctor  

Methods

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.