UNPKG

@nestjs/common

Version:

Nest - modern, fast, powerful node.js web framework (@common)

15 lines (14 loc) 504 B
import { PipeTransform } from '../../interfaces/index'; /** * Setups pipes to the chosen context. * When the `@UsePipes()` is used on the controller level: * - Pipe will be set up to every handler (every method) * * When the `@UsePipes()` is used on the handle level: * - Pipe will be set up only to specified method * * @param {PipeTransform[]} ...pipes (instances) */ export declare function UsePipes( ...pipes: PipeTransform<any>[] ): (target: object, key?: any, descriptor?: any) => any;