Skip to main content

Interface: MappingStrategy<TIdentifier>

Type parameters

NameType
TIdentifierextends MetadataIdentifier

Properties

applyMetadata

Readonly applyMetadata: ApplyMetadataFn

Defined in

lib/types.ts:600


destinationConstructor

destinationConstructor: DestinationConstructor<any, any>

Defined in

lib/types.ts:598


mapper

mapper: Mapper

Defined in

lib/types.ts:599

Methods

postMap

postMap<TSource, TDestination>(source, destination, mapping): undefined | TDestination

Type parameters

NameType
TSourceextends Dictionary<TSource>
TDestinationextends Dictionary<TDestination>

Parameters

NameType
sourceTSource
destinationTDestination
mappingMapping<TSource, TDestination>

Returns

undefined | TDestination

Defined in

lib/types.ts:611


preMap

preMap<TSource, TDestination>(source, mapping): TSource

Type parameters

NameType
TSourceextends Dictionary<TSource>
TDestinationextends Dictionary<TDestination>

Parameters

NameType
sourceTSource
mappingMapping<TSource, TDestination>

Returns

TSource

Defined in

lib/types.ts:604


retrieveMetadata

retrieveMetadata(...identifiers): Map<TIdentifier, MetadataList>

Parameters

NameType
...identifiersTIdentifier[]

Returns

Map<TIdentifier, MetadataList>

Defined in

lib/types.ts:601