import { ReflectMetadata } from '@nestjs/common' ; import { DTO_META_KEY } from './dto.constants' ; import { DtoOptions } from './dto.interfaces' ; export function Dto ( options ? ) { const defaults = { transform : true , whitelist : true , forbidNonWhitelisted : false , ... options } ; return ReflectMetadata ( DTO_META_KEY , defaults ) ; }