Type Alias: GuardsFor<T, G, C>
ts
type GuardsFor<T, G, C> = T extends object ? ScopedGuards<T, G, C> : Guards<T, C>;Defined in: packages/trpc/src/guards.ts:195
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> |
C | RbacProcedureContext |
