Type Alias: PermissionName<T, G>
ts
type PermissionName<T, G> = PermissionsOf<GuardTypes<T, G>>;Defined in: packages/core/src/types.ts:127
Permission names accepted by an Rbac<T> (string enums also accept their literal values). With per-guard names (T['guards']), the names of guard G: the default guard's by default, every guard's for G = string.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends RbacTypeConfig | DefaultRbacTypes |
G extends string | DefaultGuardName<T> |
