UNPKG

honestjs

Version:

HonestJS - a modern web framework built on top of Hono

10 lines (9 loc) 492 B
import type { GuardType } from '../interfaces'; import type { Constructor } from '../types'; /** * Decorator that applies guards to a controller class or method * Guards determine whether a request should be handled by the route handler * @param guards - Array of guards to apply * @returns A decorator function that can be used at class or method level */ export declare function UseGuards(...guards: GuardType[]): (target: Constructor | object, propertyKey?: string | symbol) => void;