Skip to content

Type Alias: SyncRolePermissions<T, G> ​

ts
type SyncRolePermissions<T, G> = readonly PermissionName<T, G>[] | "*";

Defined in: packages/core/src/sync.ts:19

The permissions of a role in a SyncDefinition: an explicit list, or '*' for every permission of the guard.

Type Parameters ​

Type ParameterDefault type
T extends RbacTypeConfigDefaultRbacTypes
G extends stringDefaultGuardName<T>

Released under the MIT License. Inspired by spatie/laravel-permission.