Skip to main content
Version: 0.17

Class: BaseSerializer<From, To, SerializationOptions, DeserializationOptions>

Type parameters​

NameType
FromFrom
ToTo
SerializationOptionsunknown
DeserializationOptionsunknown

Hierarchy​

Implements​

  • Serializer<From, To, SerializationOptions, DeserializationOptions>

Constructors​

constructor​

• new BaseSerializer<From, To, SerializationOptions, DeserializationOptions>(settings?)

Type parameters​

NameType
FromFrom
ToTo
SerializationOptionsunknown
DeserializationOptionsunknown

Parameters​

NameType
settings?Object
settings.deserializationOptions?DeserializationOptions
settings.serializationOptions?SerializationOptions
settings.serializerFor?SerializerForFn<Serializer<unknown, unknown, unknown, unknown>>

Defined in​

base-serializer.ts:15

Properties​

serializerFor​

• Optional serializerFor: SerializerForFn<Serializer<unknown, unknown, unknown, unknown>>

Defined in​

base-serializer.ts:11

Methods​

deserialize​

â–¸ Abstract deserialize(arg, options?): From

Parameters​

NameType
argTo
options?DeserializationOptions

Returns​

From

Implementation of​

Serializer.deserialize

Defined in​

base-serializer.ts:54


serialize​

â–¸ Abstract serialize(arg, options?): To

Parameters​

NameType
argFrom
options?SerializationOptions

Returns​

To

Implementation of​

Serializer.serialize

Defined in​

base-serializer.ts:53