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