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/react-router/src/server.ts:148

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

Type Parameters ​

Type Parameter
T extends RbacTypeConfig
G extends string
A extends RouteArgs

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