UNPKG

409 BTypeScriptView Raw
1import { Handler } from 'express'
2
3declare interface GuardOptions {
4 requestProperty?: string
5 permissionsProperty?: string
6}
7
8declare class Guard {
9 public constructor(options?: GuardOptions);
10
11 public check(required: string | string[] | string[][]): Handler;
12}
13
14declare function guardFactory(options?: GuardOptions): Guard;
15
16declare namespace guardFactory {
17}
18
19export = guardFactory;