Skip to content

Type Alias: PermissionInput<P> ​

ts
type PermissionInput<P> = P | Permission;

Defined in: packages/core/src/types.ts:35

A permission can be referenced by its name or by the permission object itself. P narrows the accepted names (see RbacTypeConfig); defaults to any string.

Type Parameters ​

Type ParameterDefault type
P extends stringstring

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