UNPKG
@delon-fork/acl
Version:
latest (8.8.0-beta7)
8.8.0-beta7
8.8.0-beta6
A simple role-based access control.
ng-alain.com
ng-alain/delon
@delon-fork/acl
/
src
/
acl.config.d.ts
12 lines
(11 loc)
•
305 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import { ACLCanType, ACLType } from
'./acl.type'
; export declare
class
DelonACLConfig
{ /** * Router URL
when
guard fail, default:
`/403`
*
/ guard_url?: string; /
** *
`can`
before execution callback */ preCan?: ((roleOrAbility: ACLCanType) => ACLType | null) | null; }