Skip to content

Type Alias: GuardsFor<T, G, A> ​

ts
type GuardsFor<T, G, A> = T extends object ? ScopedGuards<T, G, A> : Guards<T, A>;

Defined in: packages/astro/src/server.ts:155

Guards, or ScopedGuards for an engine with per-guard names.

Type Parameters ​

Type Parameter
T extends RbacTypeConfig
G extends string
A extends AstroContext

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