Skip to content

Type Alias: DefaultGuardName<T> ​

ts
type DefaultGuardName<T> = T extends object ? T extends object ? D : "web" : string;

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

The guard whose names apply when no guard is given: T['defaultGuard'] (default 'web') with guards, string (all guards share the names) without.

Type Parameters ​

Type ParameterDefault type
T extends RbacTypeConfigDefaultRbacTypes

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