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