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> {
|
async waitUntil(promise: Promise<any>): Promise<void> {
|
||||||
await promise
|
await promise
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
props: any
|
||||||
}
|
}
|
||||||
|
|
||||||
vi.mock(import('toucan-js'), async (importOriginal) => {
|
vi.mock(import('toucan-js'), async (importOriginal) => {
|
||||||
|
|
|
@ -16,6 +16,8 @@ class MockContext implements ExecutionContext {
|
||||||
async waitUntil(promise: Promise<any>): Promise<void> {
|
async waitUntil(promise: Promise<any>): Promise<void> {
|
||||||
await promise
|
await promise
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
props: any
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Options = Omit<ToucanOptions, 'request' | 'context'>
|
export type Options = Omit<ToucanOptions, 'request' | 'context'>
|
||||||
|
|
Loading…
Reference in New Issue