@nangazaki/vue-rbac
Version:
Role-Based Access Control (RBAC) implementation for Vue.js
13 lines (12 loc) • 692 B
TypeScript
import { type RBACConfig } from "../types/index";
/**
* Default configuration object for RBAC (Role-Based Access Control)
* @interface RBACConfig
* @property {Record<string, Role>} roles - Object containing role definitions
* @property {CONFIG_MODE} mode - Operation mode of RBAC (STATIC or API)
* @property {string} apiEndpoint - API endpoint for fetching permissions
* @property {RequestInit} fetchOptions - Options for fetch API when making HTTP requests
* @property {(data: any) => any} transformResponse - Function to transform API response data
* @property {boolean} autoInit - Flag to enable/disable automatic initialization
*/
export declare const defaultConfig: RBACConfig;