fix(sentry): fix the type error (#1081)
parent
83ca99d337
commit
a3979bda8f
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@hono/sentry': patch
|
||||
---
|
||||
|
||||
fix: fix the type error
|
|
@ -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) => {
|
||||
|
|
|
@ -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'>
|
||||
|
|
Loading…
Reference in New Issue