UNPKG

nralcm

Version:

This is a framework based on NodeJs to manage rest api request lifecycle

7 lines (6 loc) 285 B
import "reflect-metadata/Reflect"; /** * Decorator for Authentication and Authorization * @param roles Roles array (string) */ export declare function Authorize(roles?: string[]): (target: any, propertyKey?: string | undefined, descriptor?: PropertyDescriptor | undefined) => void;