Type Alias: GuardsFor<T, G>
ts
type GuardsFor<T, G> = T extends object ? ScopedGuards<T, G> : Guards<T>;Defined in: packages/elysia/src/guards.ts:175
What createGuards<T, G>() returns: Guards, or ScopedGuards for a config with guards.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends RbacTypeConfig | DefaultRbacTypes |
G extends string | DefaultGuardName<T> |
