Skip to content
AutoMapper TypeScript
Esc
navigateopen⌘Jpreview
On this page

Function: mapWith()

Function: mapWith() API reference from @automapper/core.

@automapper/core


mapWith<TSource, TDestination, TSelectorReturn, TWithDestination, TWithSource, TWithSourceValue>(withDestination, withSource, withSourceValue): MapWithReturn<TSource, TDestination, TSelectorReturn>

Defined in: packages/core/src/lib/member-map-functions/map-with.ts:12

Type Parameters

TSource

TSource extends Dictionary<TSource>

TDestination

TDestination extends Dictionary<TDestination>

TSelectorReturn

TSelectorReturn = unknown

TWithDestination

TWithDestination extends ModelIdentifier = ModelIdentifier

TWithSource

TWithSource extends ModelIdentifier = ModelIdentifier

TWithSourceValue

TWithSourceValue extends ValueSelector = TWithSource extends Constructor<InferredWithSource> ? ValueSelector<TSource, InferredWithSource> : ValueSelector<TSource>

Parameters

withDestination

TWithDestination

withSource

TWithSource

withSourceValue

TWithSourceValue

Returns

MapWithReturn<TSource, TDestination, TSelectorReturn>

Was this page helpful?