fix(sentry): fix the type error (#1081)

pull/1082/head
Yusuke Wada 2025-03-29 09:12:39 +09:00 committed by GitHub
parent 83ca99d337
commit a3979bda8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
'@hono/sentry': patch
---
fix: fix the type error

View File

@ -11,6 +11,8 @@ class Context implements ExecutionContext {
async waitUntil(promise: Promise<any>): Promise<void> {
await promise
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
props: any
}
vi.mock(import('toucan-js'), async (importOriginal) => {

View File

@ -16,6 +16,8 @@ class MockContext implements ExecutionContext {
async waitUntil(promise: Promise<any>): Promise<void> {
await promise
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
props: any
}
export type Options = Omit<ToucanOptions, 'request' | 'context'>