UNPKG

nestjs-response-dto-mapper

Version:

👀 Response to DTO mapper for NestJS and Swagger with class-transformer

4 lines (3 loc) • 348 B
import { Type } from '@nestjs/common'; import { ApiResponseOptions } from '@nestjs/swagger'; export declare const MapResponseToDto: (type: Type<any>, options?: ApiResponseOptions) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;