@types/sharedworker 0.0.55 → 0.0.59

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.55 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.55.
31
+ You can read what changed in version 0.0.59 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.59.
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
 
@@ -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: {
@@ -1246,8 +1248,10 @@ interface EventSource extends EventTarget {
1246
1248
  readonly CONNECTING: number;
1247
1249
  readonly OPEN: number;
1248
1250
  addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1251
+ addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
1249
1252
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1250
1253
  removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1254
+ removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
1251
1255
  removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1252
1256
  }
1253
1257
 
@@ -1831,6 +1835,7 @@ interface IDBTransactionEventMap {
1831
1835
  interface IDBTransaction extends EventTarget {
1832
1836
  /** Returns the transaction's connection. */
1833
1837
  readonly db: IDBDatabase;
1838
+ readonly durability: IDBTransactionDurability;
1834
1839
  /** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
1835
1840
  readonly error: DOMException | null;
1836
1841
  /** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -2307,7 +2312,7 @@ declare var PromiseRejectionEvent: {
2307
2312
  */
2308
2313
  interface PushManager {
2309
2314
  getSubscription(): Promise<PushSubscription | null>;
2310
- permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
2315
+ permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
2311
2316
  subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
2312
2317
  }
2313
2318
 
@@ -2909,6 +2914,13 @@ interface WEBGL_lose_context {
2909
2914
  restoreContext(): void;
2910
2915
  }
2911
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
+
2912
2924
  interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
2913
2925
  }
2914
2926
 
@@ -5406,7 +5418,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
5406
5418
  type BufferSource = ArrayBufferView | ArrayBuffer;
5407
5419
  type CanvasImageSource = ImageBitmap | OffscreenCanvas;
5408
5420
  type DOMHighResTimeStamp = number;
5409
- type DOMTimeStamp = number;
5421
+ type EpochTimeStamp = number;
5410
5422
  type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
5411
5423
  type Float32List = Float32Array | GLfloat[];
5412
5424
  type FormDataEntryValue = File | string;
@@ -5452,6 +5464,7 @@ type FontFaceSetLoadStatus = "loaded" | "loading";
5452
5464
  type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
5453
5465
  type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
5454
5466
  type IDBRequestReadyState = "done" | "pending";
5467
+ type IDBTransactionDurability = "default" | "relaxed" | "strict";
5455
5468
  type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
5456
5469
  type ImageOrientation = "flipY" | "none";
5457
5470
  type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
@@ -5466,7 +5479,6 @@ type PermissionState = "denied" | "granted" | "prompt";
5466
5479
  type PredefinedColorSpace = "display-p3" | "srgb";
5467
5480
  type PremultiplyAlpha = "default" | "none" | "premultiply";
5468
5481
  type PushEncryptionKeyName = "auth" | "p256dh";
5469
- type PushPermissionState = "denied" | "granted" | "prompt";
5470
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";
5471
5483
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
5472
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.55",
3
+ "version": "0.0.59",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "MIT",
6
6
  "contributors": [],