Function: UseGuards()
ts
function UseGuards(...guards): MethodDecorator & ClassDecorator;Defined in: packages/core/src/guards/use-guards.decorator.ts:12
Decorator that binds guards to the scope of the controller or method, depending on its context.
Parameters
| Parameter | Type | Description |
|---|---|---|
...guards | (object | ((...args) => any))[] | A single guard instance or class, or an array of guard instances or classes. |
Returns
MethodDecorator & ClassDecorator