@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
13 lines (12 loc) • 492 B
TypeScript
import { CanActivate } from '../../interfaces';
/**
* Binds guards to the particular context.
* When the `@UseGuards()` is used on the controller level:
* - Guard will be register to each handler (every method)
*
* When the `@UseGuards()` is used on the handler level:
* - Guard will be registered only to the specified method
*
* @param {} ...guards
*/
export declare function UseGuards(...guards: (CanActivate | Function)[]): (target: any, key?: string, descriptor?: any) => any;