@types/serviceworker 0.0.64 → 0.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.64 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.64.
31
+ You can read what changed in version 0.0.65 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.65.
package/index.d.ts CHANGED
@@ -5753,7 +5753,7 @@ interface WindowOrWorkerGlobalScope {
5753
5753
  reportError(e: any): void;
5754
5754
  setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
5755
5755
  setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
5756
- structuredClone(value: any, options?: StructuredSerializeOptions): any;
5756
+ structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
5757
5757
  }
5758
5758
 
5759
5759
  interface WorkerGlobalScopeEventMap {
@@ -6131,7 +6131,7 @@ declare function queueMicrotask(callback: VoidFunction): void;
6131
6131
  declare function reportError(e: any): void;
6132
6132
  declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
6133
6133
  declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
6134
- declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
6134
+ declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
6135
6135
  declare function addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
6136
6136
  declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
6137
6137
  declare function removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],