Skip to content

Interface: ScopeOptions<G> ​

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

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.

Extends ​

Extended by ​

Type Parameters ​

Type ParameterDefault type
G extends stringstring

Properties ​

PropertyTypeDescriptionInherited fromDefined in
guard?GGuard name, e.g. web or api. Defaults to defaultGuard.GuardOptions.guardpackages/core/src/rbac.ts:73
team?TeamIdTeam id. Only allowed when teams is enabled.-packages/core/src/rbac.ts:78

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