File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,11 @@ function wrapMethodWithSentry<T extends (...args: any[]) => any>(
133133 * );
134134 * ```
135135 */
136- export function instrumentDurableObjectWithSentry < E , T extends DurableObject < E > > (
137- optionsCallback : ( env : E ) => CloudflareOptions ,
138- DurableObjectClass : new ( state : DurableObjectState , env : E ) => T ,
139- ) : new ( state : DurableObjectState , env : E ) => T {
136+ export function instrumentDurableObjectWithSentry <
137+ E ,
138+ T extends DurableObject < E > ,
139+ C extends new ( state : DurableObjectState , env : E ) => T ,
140+ > ( optionsCallback : ( env : E ) => CloudflareOptions , DurableObjectClass : C ) : C {
140141 return new Proxy ( DurableObjectClass , {
141142 construct ( target , [ context , env ] ) {
142143 setAsyncLocalStorageAsyncContextStrategy ( ) ;
You can’t perform that action at this time.
0 commit comments