Skip to content

Type Alias: ScopedGuardName<T, G> ​

ts
type ScopedGuardName<T, G> = T extends object ? G : string;

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

The guard a scope chosen with { guard: G } has at the type level: G with guards in T, else string.

Type Parameters ​

Type Parameter
T extends RbacTypeConfig
G extends string

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