Interface: ScopedGuards<T, G>
Defined in: packages/hono/src/guards.ts:181
The guards returned by createGuards<T, G>() when T has per-guard names: names follow the guard each call checks in (see ScopedGuard), and the handlers get a c whose c.var.rbac is in guard G.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends RbacTypeConfig | - |
G extends string | DefaultGuardName<T> |
Properties
| Property | Type | Defined in |
|---|---|---|
canAll | ScopedGuard<T, G, "permission", RouteGuardOptions<GuardHandlerContext<T, G>>> | packages/hono/src/guards.ts:186 |
canAny | ScopedGuard<T, G, "permission", RouteGuardOptions<GuardHandlerContext<T, G>>> | packages/hono/src/guards.ts:185 |
requirePermission | ScopedGuard<T, G, "permission", PermissionGuardOptions<GuardHandlerContext<T, G>>> | packages/hono/src/guards.ts:182 |
requireRole | ScopedGuard<T, G, "role", RoleGuardOptions<GuardHandlerContext<T, G>>> | packages/hono/src/guards.ts:183 |
requireRoleOrPermission | ScopedGuard<T, G, "role_or_permission", RoleOrPermissionGuardOptions<GuardHandlerContext<T, G>>> | packages/hono/src/guards.ts:184 |
