UNPKG

479 BTypeScriptView Raw
1import { ArgumentMetadata, PipeTransform } from '@nestjs/common/interfaces';
2export declare class PipesConsumer {
3 private readonly paramsTokenFactory;
4 apply<TInput = unknown>(value: TInput, { metatype, type, data }: ArgumentMetadata, pipes: PipeTransform[]): Promise<TInput>;
5 applyPipes<TInput = unknown>(value: TInput, { metatype, type, data }: {
6 metatype: any;
7 type?: any;
8 data?: any;
9 }, transforms: PipeTransform[]): Promise<TInput>;
10}