Type Alias: GuardsFor<T, G>
ts
type GuardsFor<T, G> = T extends object ? ScopedGuards<T, G> : Guards<T>;Defined in: packages/sveltekit/src/server/guards.ts:148
What createGuards<T, G>() returns: Guards for a config without per-guard names, and ScopedGuards for one with guards.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends RbacTypeConfig | DefaultRbacTypes |
G extends string | DefaultGuardName<T> |
