@types/sharedworker 0.0.72 → 0.0.73

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 +6 -4
  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.72 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.72.
31
+ You can read what changed in version 0.0.73 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.73.
package/index.d.ts CHANGED
@@ -900,6 +900,7 @@ declare var CustomEvent: {
900
900
 
901
901
  /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
902
902
  interface DOMException extends Error {
903
+ /** @deprecated */
903
904
  readonly code: number;
904
905
  readonly message: string;
905
906
  readonly name: string;
@@ -4970,8 +4971,8 @@ interface WindowOrWorkerGlobalScope {
4970
4971
  readonly performance: Performance;
4971
4972
  atob(data: string): string;
4972
4973
  btoa(data: string): string;
4973
- clearInterval(id?: number): void;
4974
- clearTimeout(id?: number): void;
4974
+ clearInterval(id: number | undefined): void;
4975
+ clearTimeout(id: number | undefined): void;
4975
4976
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
4976
4977
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
4977
4978
  fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
@@ -5087,6 +5088,7 @@ declare var WritableStream: {
5087
5088
 
5088
5089
  /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
5089
5090
  interface WritableStreamDefaultController {
5091
+ readonly signal: AbortSignal;
5090
5092
  error(e?: any): void;
5091
5093
  }
5092
5094
 
@@ -5502,8 +5504,8 @@ declare var origin: string;
5502
5504
  declare var performance: Performance;
5503
5505
  declare function atob(data: string): string;
5504
5506
  declare function btoa(data: string): string;
5505
- declare function clearInterval(id?: number): void;
5506
- declare function clearTimeout(id?: number): void;
5507
+ declare function clearInterval(id: number | undefined): void;
5508
+ declare function clearTimeout(id: number | undefined): void;
5507
5509
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5508
5510
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5509
5511
  declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "MIT",
6
6
  "contributors": [],