UNPKG

@nangazaki/vue-rbac

Version:

Role-Based Access Control (RBAC) implementation for Vue.js

10 lines (9 loc) 205 B
export type Permission = string; export type RoleKey = string; export interface Role { permissions: Permission[]; inherits?: RoleKey[]; } export interface RolesConfig { [key: RoleKey]: Role; }