Skip to content

Type Alias: GuardName<T> ​

ts
type GuardName<T> = T extends object ? keyof Gs & string : string;

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

The guards typed in T (the keys of T['guards']), or string when T has no guards: then any guard is accepted and every guard has the same names.

Type Parameters ​

Type ParameterDefault type
T extends RbacTypeConfigDefaultRbacTypes

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