Skip to content

Commit 45dfdda

Browse files
committed
fix: cloudflare types breaking env with DOs
1 parent 5ee2597 commit 45dfdda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cloudflare/src/durableobject.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
withIsolationScope,
1212
withScope,
1313
} from '@sentry/core';
14-
import type { DurableObject } from 'cloudflare:workers';
14+
import type { DurableObject } from '@cloudflare/workers-types';
1515
import { setAsyncLocalStorageAsyncContextStrategy } from './async';
1616
import type { CloudflareOptions } from './client';
1717
import { isInstrumented, markAsInstrumented } from './instrument';
@@ -189,7 +189,7 @@ function wrapMethodWithSentry<T extends OriginalMethod>(
189189
*/
190190
export function instrumentDurableObjectWithSentry<
191191
E,
192-
T extends DurableObject<E>,
192+
T extends DurableObject,
193193
C extends new (state: DurableObjectState, env: E) => T,
194194
>(optionsCallback: (env: E) => CloudflareOptions, DurableObjectClass: C): C {
195195
return new Proxy(DurableObjectClass, {

0 commit comments

Comments
 (0)