@@ -5602,7 +5602,7 @@ interface WindowOrWorkerGlobalScope {
5602
5602
reportError ( e : any ) : void ;
5603
5603
setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5604
5604
setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
5605
- structuredClone ( value : any , options ?: StructuredSerializeOptions ) : any ;
5605
+ structuredClone < T = any > ( value : T , options ?: StructuredSerializeOptions ) : T ;
5606
5606
}
5607
5607
5608
5608
interface WorkerEventMap extends AbstractWorkerEventMap {
@@ -6140,7 +6140,7 @@ declare function queueMicrotask(callback: VoidFunction): void;
6140
6140
declare function reportError ( e : any ) : void ;
6141
6141
declare function setInterval ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
6142
6142
declare function setTimeout ( handler : TimerHandler , timeout ?: number , ...arguments : any [ ] ) : number ;
6143
- declare function structuredClone ( value : any , options ?: StructuredSerializeOptions ) : any ;
6143
+ declare function structuredClone < T = any > ( value : T , options ?: StructuredSerializeOptions ) : T ;
6144
6144
declare function addEventListener < K extends keyof SharedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : SharedWorkerGlobalScope , ev : SharedWorkerGlobalScopeEventMap [ K ] ) => any , options ?: boolean | AddEventListenerOptions ) : void ;
6145
6145
declare function addEventListener ( type : string , listener : EventListenerOrEventListenerObject , options ?: boolean | AddEventListenerOptions ) : void ;
6146
6146
declare function removeEventListener < K extends keyof SharedWorkerGlobalScopeEventMap > ( type : K , listener : ( this : SharedWorkerGlobalScope , ev : SharedWorkerGlobalScopeEventMap [ K ] ) => any , options ?: boolean | EventListenerOptions ) : void ;
0 commit comments