UNPKG

@nangazaki/vue-rbac

Version:

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

13 lines (12 loc) 543 B
import type { RBACConfig, RBACState, RolesConfig } from "../types/index"; /** * Loads static RBAC configuration into the state. * * @param state - The current RBAC state object * @param options - The required RBAC configuration options * @returns A Promise that resolves to the roles configuration * * @remarks * This function updates the state with roles from the provided options and marks the state as initialized. */ export declare function loadStaticConfig(state: RBACState, options: Required<RBACConfig>): Promise<RolesConfig>;