UNPKG

308 BTypeScriptView Raw
1import { Action } from './Action';
2/**
3 * Special function used to check user authorization roles per request.
4 * Must return true or promise with boolean true resolved for authorization to succeed.
5 */
6export declare type AuthorizationChecker = (action: Action, roles: any[]) => Promise<boolean> | boolean;