Skip to content

Interface: GuardOptions<G> ​

Defined in: packages/core/src/rbac.ts:71

G is the type of guard: any string by default. The methods that take names pass the typed guards here (see CheckGuard), so with per-guard names guard is checked and selects the names.

Extended by ​

Type Parameters ​

Type ParameterDefault type
G extends stringstring

Properties ​

PropertyTypeDescriptionDefined in
guard?GGuard name, e.g. web or api. Defaults to defaultGuard.packages/core/src/rbac.ts:73

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