UNPKG

261 BTypeScriptView Raw
1export declare class RoleAuthorizer {
2 userInRoles(roles: string[]): (req: any, res: any, next: () => void) => void;
3 userInRole(role: string): (req: any, res: any, next: () => void) => void;
4 admin(): (req: any, res: any, next: () => void) => void;
5}