UNPKG
@nangazaki/vue-rbac
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.2
1.0.1
1.0.0
Role-Based Access Control (RBAC) implementation for Vue.js
vue-rbac.nangazaki.io
nangazaki/vue-rbac
@nangazaki/vue-rbac
/
dist
/
types
/
roles.types.d.ts
10 lines
(9 loc)
•
205 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
type
Permission
=
string
;
export
type
RoleKey
=
string
;
export
interface
Role
{
permissions
:
Permission
[];
inherits
?:
RoleKey
[]; }
export
interface
RolesConfig
{ [
key
:
RoleKey
]:
Role
; }