Skip to content

Type Alias: GuardsFor<T, G> ​

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

Defined in: packages/tanstack-start/src/server.ts:133

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

Type Parameters ​

Type Parameter
T extends RbacTypeConfig
G extends string

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