diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cb67518..87fa2bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,4 +23,4 @@ jobs: run: bun run build - name: Publish package - run: bunx jsr publish --allow-dirty --allow-slow-types + run: bunx jsr publish --allow-dirty diff --git a/src/hot-shot.ts b/src/hot-shot.ts index f5eac47..7471743 100644 --- a/src/hot-shot.ts +++ b/src/hot-shot.ts @@ -26,12 +26,6 @@ import { createMiddleware } from "hono/factory" import { HTTPException } from "hono/http-exception" import type { StatusCode } from "hono/utils/http-status" -declare module "hono" { - interface Context { - permissions?: RoutePermissions; - } -} - /* | |-------------------------------------------------------------------------- @@ -388,7 +382,8 @@ export function middlewareFactory( class PermissionController { constructor(private requiredPermissions: RoutePermissions) {} - use = createMiddleware(async (ctx: Context, next: Next) => { + // biome-ignore lint/suspicious/noExplicitAny: + use = createMiddleware(async (ctx: any, next: Next) => { try { const myPermissions = ctx.permissions ?? []