@types/serviceworker 0.0.158 → 0.0.160

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.158 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.158.
31
+ You can read what changed in version 0.0.160 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.160.
package/index.d.ts CHANGED
@@ -534,6 +534,10 @@ interface QueuingStrategyInit {
534
534
  highWaterMark: number;
535
535
  }
536
536
 
537
+ interface ReadableStreamBYOBReaderReadOptions {
538
+ min?: number;
539
+ }
540
+
537
541
  interface ReadableStreamGetReaderOptions {
538
542
  /**
539
543
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -6491,7 +6495,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
6491
6495
  *
6492
6496
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
6493
6497
  */
6494
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
6498
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
6495
6499
  /**
6496
6500
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
6497
6501
  *
@@ -7037,7 +7041,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
7037
7041
  "fetch": FetchEvent;
7038
7042
  "install": ExtendableEvent;
7039
7043
  "message": ExtendableMessageEvent;
7040
- "messageerror": MessageEvent;
7044
+ "messageerror": ExtendableMessageEvent;
7041
7045
  "notificationclick": NotificationEvent;
7042
7046
  "notificationclose": NotificationEvent;
7043
7047
  "push": PushEvent;
@@ -7074,7 +7078,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
7074
7078
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
7075
7079
  onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7076
7080
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7077
- onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7081
+ onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7078
7082
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
7079
7083
  onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
7080
7084
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11543,7 +11547,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
11543
11547
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
11544
11548
  declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11545
11549
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11546
- declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11550
+ declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11547
11551
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
11548
11552
  declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
11549
11553
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.158",
3
+ "version": "0.0.160",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -531,6 +531,10 @@ interface QueuingStrategyInit {
531
531
  highWaterMark: number;
532
532
  }
533
533
 
534
+ interface ReadableStreamBYOBReaderReadOptions {
535
+ min?: number;
536
+ }
537
+
534
538
  interface ReadableStreamGetReaderOptions {
535
539
  /**
536
540
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -6488,7 +6492,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
6488
6492
  *
6489
6493
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
6490
6494
  */
6491
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
6495
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
6492
6496
  /**
6493
6497
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
6494
6498
  *
@@ -7034,7 +7038,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
7034
7038
  "fetch": FetchEvent;
7035
7039
  "install": ExtendableEvent;
7036
7040
  "message": ExtendableMessageEvent;
7037
- "messageerror": MessageEvent;
7041
+ "messageerror": ExtendableMessageEvent;
7038
7042
  "notificationclick": NotificationEvent;
7039
7043
  "notificationclose": NotificationEvent;
7040
7044
  "push": PushEvent;
@@ -7071,7 +7075,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
7071
7075
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
7072
7076
  onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7073
7077
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7074
- onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7078
+ onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7075
7079
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
7076
7080
  onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
7077
7081
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11540,7 +11544,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
11540
11544
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
11541
11545
  declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11542
11546
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11543
- declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11547
+ declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11544
11548
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
11545
11549
  declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
11546
11550
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
package/ts5.6/index.d.ts CHANGED
@@ -531,6 +531,10 @@ interface QueuingStrategyInit {
531
531
  highWaterMark: number;
532
532
  }
533
533
 
534
+ interface ReadableStreamBYOBReaderReadOptions {
535
+ min?: number;
536
+ }
537
+
534
538
  interface ReadableStreamGetReaderOptions {
535
539
  /**
536
540
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -6488,7 +6492,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
6488
6492
  *
6489
6493
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
6490
6494
  */
6491
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
6495
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
6492
6496
  /**
6493
6497
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
6494
6498
  *
@@ -7034,7 +7038,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
7034
7038
  "fetch": FetchEvent;
7035
7039
  "install": ExtendableEvent;
7036
7040
  "message": ExtendableMessageEvent;
7037
- "messageerror": MessageEvent;
7041
+ "messageerror": ExtendableMessageEvent;
7038
7042
  "notificationclick": NotificationEvent;
7039
7043
  "notificationclose": NotificationEvent;
7040
7044
  "push": PushEvent;
@@ -7071,7 +7075,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
7071
7075
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
7072
7076
  onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7073
7077
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7074
- onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7078
+ onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7075
7079
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
7076
7080
  onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
7077
7081
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11540,7 +11544,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
11540
11544
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
11541
11545
  declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11542
11546
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11543
- declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11547
+ declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11544
11548
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
11545
11549
  declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
11546
11550
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
package/ts5.9/index.d.ts CHANGED
@@ -531,6 +531,10 @@ interface QueuingStrategyInit {
531
531
  highWaterMark: number;
532
532
  }
533
533
 
534
+ interface ReadableStreamBYOBReaderReadOptions {
535
+ min?: number;
536
+ }
537
+
534
538
  interface ReadableStreamGetReaderOptions {
535
539
  /**
536
540
  * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
@@ -6488,7 +6492,7 @@ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
6488
6492
  *
6489
6493
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
6490
6494
  */
6491
- read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
6495
+ read<T extends ArrayBufferView>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
6492
6496
  /**
6493
6497
  * The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
6494
6498
  *
@@ -7034,7 +7038,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
7034
7038
  "fetch": FetchEvent;
7035
7039
  "install": ExtendableEvent;
7036
7040
  "message": ExtendableMessageEvent;
7037
- "messageerror": MessageEvent;
7041
+ "messageerror": ExtendableMessageEvent;
7038
7042
  "notificationclick": NotificationEvent;
7039
7043
  "notificationclose": NotificationEvent;
7040
7044
  "push": PushEvent;
@@ -7071,7 +7075,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
7071
7075
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
7072
7076
  onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7073
7077
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
7074
- onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
7078
+ onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
7075
7079
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
7076
7080
  onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
7077
7081
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
@@ -11540,7 +11544,7 @@ declare var oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) =>
11540
11544
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
11541
11545
  declare var onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11542
11546
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
11543
- declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
11547
+ declare var onmessageerror: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
11544
11548
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
11545
11549
  declare var onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
11546
11550
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */