refactor(clerk-auth): enable isolated declarations (#1194)

pull/1206/head
Jonathan Haines 2025-06-09 19:11:11 +10:00 committed by GitHub
parent 1adca4c918
commit 683455895d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/clerk-auth': patch
---
Add explicit `MiddlewareHandler` return type

View File

@ -12,7 +12,7 @@ declare module 'hono' {
}
}
export const getAuth = (c: Context) => {
export const getAuth = (c: Context): ClerkAuth => {
return c.get('clerkAuth')
}

View File

@ -4,7 +4,8 @@
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
"emitDeclarationOnly": false
"emitDeclarationOnly": false,
"isolatedDeclarations": true
},
"include": ["src/**/*.ts"],
"exclude": ["**/*.test.ts"],