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

Variable: MapInterceptor

Variable: MapInterceptor API reference from @automapper/nestjs.

@automapper/nestjs


const MapInterceptor: <TSource, TDestination>(from, to, options?) => Type<NestInterceptor>

Defined in: packages/nestjs/src/lib/map.interceptor.ts:29

Maps route-handler responses with synchronous or asynchronous mappings. Promise-returning member resolvers and callbacks are awaited before the response is emitted, and mapping errors propagate through the response stream.

Type Parameters

TSource

TSource extends Dictionary<TSource>

TDestination

TDestination extends Dictionary<TDestination>

Parameters

from

ModelIdentifier<TSource>

to

ModelIdentifier<TDestination>

options?

object & MapOptions<TSource, TDestination>

Returns

Type<NestInterceptor>

Was this page helpful?