@types/sharedworker 0.0.72 → 0.0.75

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 +8 -5
  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.75 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.75.
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;
@@ -2434,6 +2435,7 @@ declare var PushManager: {
2434
2435
  */
2435
2436
  interface PushSubscription {
2436
2437
  readonly endpoint: string;
2438
+ readonly expirationTime: EpochTimeStamp | null;
2437
2439
  readonly options: PushSubscriptionOptions;
2438
2440
  getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
2439
2441
  toJSON(): PushSubscriptionJSON;
@@ -4970,8 +4972,8 @@ interface WindowOrWorkerGlobalScope {
4970
4972
  readonly performance: Performance;
4971
4973
  atob(data: string): string;
4972
4974
  btoa(data: string): string;
4973
- clearInterval(id?: number): void;
4974
- clearTimeout(id?: number): void;
4975
+ clearInterval(id: number | undefined): void;
4976
+ clearTimeout(id: number | undefined): void;
4975
4977
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
4976
4978
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
4977
4979
  fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
@@ -5087,6 +5089,7 @@ declare var WritableStream: {
5087
5089
 
5088
5090
  /** 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
5091
  interface WritableStreamDefaultController {
5092
+ readonly signal: AbortSignal;
5090
5093
  error(e?: any): void;
5091
5094
  }
5092
5095
 
@@ -5502,8 +5505,8 @@ declare var origin: string;
5502
5505
  declare var performance: Performance;
5503
5506
  declare function atob(data: string): string;
5504
5507
  declare function btoa(data: string): string;
5505
- declare function clearInterval(id?: number): void;
5506
- declare function clearTimeout(id?: number): void;
5508
+ declare function clearInterval(id: number | undefined): void;
5509
+ declare function clearTimeout(id: number | undefined): void;
5507
5510
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5508
5511
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5509
5512
  declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
@@ -5541,7 +5544,7 @@ type GLsizeiptr = number;
5541
5544
  type GLuint = number;
5542
5545
  type GLuint64 = number;
5543
5546
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
5544
- type HeadersInit = string[][] | Record<string, string> | Headers;
5547
+ type HeadersInit = [string, string][] | Record<string, string> | Headers;
5545
5548
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
5546
5549
  type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
5547
5550
  type Int32List = Int32Array | GLint[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.72",
3
+ "version": "0.0.75",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "MIT",
6
6
  "contributors": [],