@types/sharedworker 0.0.56 → 0.0.60

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.
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.56 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.56.
31
+ You can read what changed in version 0.0.60 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.60.
package/index.d.ts CHANGED
@@ -67,8 +67,8 @@ interface CloseEventInit extends EventInit {
67
67
  }
68
68
 
69
69
  interface CryptoKeyPair {
70
- privateKey?: CryptoKey;
71
- publicKey?: CryptoKey;
70
+ privateKey: CryptoKey;
71
+ publicKey: CryptoKey;
72
72
  }
73
73
 
74
74
  interface CustomEventInit<T = any> extends EventInit {
@@ -325,7 +325,7 @@ interface NotificationOptions {
325
325
  requireInteraction?: boolean;
326
326
  silent?: boolean;
327
327
  tag?: string;
328
- timestamp?: DOMTimeStamp;
328
+ timestamp?: EpochTimeStamp;
329
329
  vibrate?: VibratePattern;
330
330
  }
331
331
 
@@ -370,7 +370,7 @@ interface PromiseRejectionEventInit extends EventInit {
370
370
 
371
371
  interface PushSubscriptionJSON {
372
372
  endpoint?: string;
373
- expirationTime?: DOMTimeStamp | null;
373
+ expirationTime?: EpochTimeStamp | null;
374
374
  keys?: Record<string, string>;
375
375
  }
376
376
 
@@ -613,7 +613,7 @@ interface AbortController {
613
613
  /** Returns the AbortSignal object associated with this object. */
614
614
  readonly signal: AbortSignal;
615
615
  /** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
616
- abort(): void;
616
+ abort(reason?: any): void;
617
617
  }
618
618
 
619
619
  declare var AbortController: {
@@ -639,7 +639,7 @@ interface AbortSignal extends EventTarget {
639
639
  declare var AbortSignal: {
640
640
  prototype: AbortSignal;
641
641
  new(): AbortSignal;
642
- // abort(): AbortSignal; - To be re-added in the future
642
+ abort(reason?: any): AbortSignal;
643
643
  };
644
644
 
645
645
  interface AbstractWorkerEventMap {
@@ -820,6 +820,8 @@ interface Crypto {
820
820
  /** Available only in secure contexts. */
821
821
  readonly subtle: SubtleCrypto;
822
822
  getRandomValues<T extends ArrayBufferView | null>(array: T): T;
823
+ /** Available only in secure contexts. */
824
+ randomUUID(): string;
823
825
  }
824
826
 
825
827
  declare var Crypto: {
@@ -1833,6 +1835,7 @@ interface IDBTransactionEventMap {
1833
1835
  interface IDBTransaction extends EventTarget {
1834
1836
  /** Returns the transaction's connection. */
1835
1837
  readonly db: IDBDatabase;
1838
+ readonly durability: IDBTransactionDurability;
1836
1839
  /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
1837
1840
  readonly error: DOMException | null;
1838
1841
  /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -2309,7 +2312,7 @@ declare var PromiseRejectionEvent: {
2309
2312
  */
2310
2313
  interface PushManager {
2311
2314
  getSubscription(): Promise<PushSubscription | null>;
2312
- permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
2315
+ permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
2313
2316
  subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
2314
2317
  }
2315
2318
 
@@ -2911,6 +2914,13 @@ interface WEBGL_lose_context {
2911
2914
  restoreContext(): void;
2912
2915
  }
2913
2916
 
2917
+ interface WEBGL_multi_draw {
2918
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
2919
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
2920
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
2921
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
2922
+ }
2923
+
2914
2924
  interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
2915
2925
  }
2916
2926
 
@@ -5408,7 +5418,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
5408
5418
  type BufferSource = ArrayBufferView | ArrayBuffer;
5409
5419
  type CanvasImageSource = ImageBitmap | OffscreenCanvas;
5410
5420
  type DOMHighResTimeStamp = number;
5411
- type DOMTimeStamp = number;
5421
+ type EpochTimeStamp = number;
5412
5422
  type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
5413
5423
  type Float32List = Float32Array | GLfloat[];
5414
5424
  type FormDataEntryValue = File | string;
@@ -5454,6 +5464,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
5454
5464
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
5455
5465
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
5456
5466
  type IDBRequestReadyState = "done" | "pending";
5467
+ type IDBTransactionDurability = "default" | "relaxed" | "strict";
5457
5468
  type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
5458
5469
  type ImageOrientation = "flipY" | "none";
5459
5470
  type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
@@ -5468,7 +5479,6 @@ type PermissionState = "denied" | "granted" | "prompt";
5468
5479
  type PredefinedColorSpace = "display-p3" | "srgb";
5469
5480
  type PremultiplyAlpha = "default" | "none" | "premultiply";
5470
5481
  type PushEncryptionKeyName = "auth" | "p256dh";
5471
- type PushPermissionState = "denied" | "granted" | "prompt";
5472
5482
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
5473
5483
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
5474
5484
  type RequestCredentials = "include" | "omit" | "same-origin";
package/iterable.d.ts CHANGED
@@ -80,6 +80,13 @@ interface WEBGL_draw_buffers {
80
80
  drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
81
81
  }
82
82
 
83
+ interface WEBGL_multi_draw {
84
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
85
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
86
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
87
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLint>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
88
+ }
89
+
83
90
  interface WebGL2RenderingContextBase {
84
91
  clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
85
92
  clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.56",
3
+ "version": "0.0.60",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "MIT",
6
6
  "contributors": [],