refactor(clerk-auth): enable isolated declarations (#1194)
parent
1adca4c918
commit
683455895d
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@hono/clerk-auth': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add explicit `MiddlewareHandler` return type
|
|
@ -12,7 +12,7 @@ declare module 'hono' {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getAuth = (c: Context) => {
|
export const getAuth = (c: Context): ClerkAuth => {
|
||||||
return c.get('clerkAuth')
|
return c.get('clerkAuth')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
|
"tsBuildInfoFile": "dist/tsconfig.build.tsbuildinfo",
|
||||||
"emitDeclarationOnly": false
|
"emitDeclarationOnly": false,
|
||||||
|
"isolatedDeclarations": true
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts"],
|
"include": ["src/**/*.ts"],
|
||||||
"exclude": ["**/*.test.ts"],
|
"exclude": ["**/*.test.ts"],
|
||||||
|
|
Loading…
Reference in New Issue