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 Parameter | Default type |
|---|---|
P extends string | string |
