diff --git a/.changeset/rich-actors-flow.md b/.changeset/rich-actors-flow.md new file mode 100644 index 00000000..e66fd667 --- /dev/null +++ b/.changeset/rich-actors-flow.md @@ -0,0 +1,5 @@ +--- +'@hono/sentry': patch +--- + +Add explicit `Toucan` return type diff --git a/packages/sentry/src/index.ts b/packages/sentry/src/index.ts index f6e5d771..38856a66 100644 --- a/packages/sentry/src/index.ts +++ b/packages/sentry/src/index.ts @@ -55,6 +55,6 @@ export const sentry = ( } } -export const getSentry = (c: Context) => { +export const getSentry = (c: Context): Toucan => { return c.get('sentry') } diff --git a/packages/sentry/tsconfig.build.json b/packages/sentry/tsconfig.build.json index ccc2f65a..a82a1266 100644 --- a/packages/sentry/tsconfig.build.json +++ b/packages/sentry/tsconfig.build.json @@ -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"],