Skip to main content

Interface: MappingStrategy<TIdentifier>

Type parameters

NameType
TIdentifierextends MetadataIdentifier

Properties

applyMetadata

Readonly applyMetadata: ApplyMetadataFn

Defined in

lib/types.ts:606


destinationConstructor

destinationConstructor: DestinationConstructor<any, any>

Defined in

lib/types.ts:604


mapper

mapper: Mapper

Defined in

lib/types.ts:605

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


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


retrieveMetadata

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

Parameters

NameType
...identifiersTIdentifier[]

Returns

Map<TIdentifier, MetadataList>

Defined in

lib/types.ts:607