refactor(sentry): enable isolated declarations (#1205)

pull/1206/head
Jonathan Haines 2025-06-09 19:31:52 +10:00 committed by GitHub
parent 8303d979f1
commit f0475c7324
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/sentry': patch
---
Add explicit `Toucan` return type

View File

@ -55,6 +55,6 @@ export const sentry = (
}
}
export const getSentry = (c: Context) => {
export const getSentry = (c: Context): Toucan => {
return c.get('sentry')
}

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"],