@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
14 lines (13 loc) • 422 B
TypeScript
/**
* Setups guards to the chosen context.
* When the `@UseGuards()` is used on the controller level:
* - Guard will be set up to every handler (every method)
*
* When the `@UseGuards()` is used on the handle level:
* - Guard will be set up only to specified method
*
* @param {} ...guards (types)
*/
export declare function UseGuards(
...guards: any[]
): (target: object, key?: any, descriptor?: any) => any;