custom-automapper
Version:
A powerful, type-safe object mapping library for TypeScript and NestJS
10 lines • 489 B
TypeScript
import { NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
import { Observable } from 'rxjs';
import { Mapper } from '../core/mapper';
export declare class AutoMapInterceptor<T extends object = any> implements NestInterceptor<T, any> {
private mapper;
private destination;
constructor(mapper: Mapper, destination: new () => any);
intercept(_context: ExecutionContext, next: CallHandler<T>): Observable<any>;
}
//# sourceMappingURL=interceptor.d.ts.map