@types/serviceworker 0.0.141 → 0.0.142

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.141 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.141.
31
+ You can read what changed in version 0.0.142 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.142.
package/index.d.ts CHANGED
@@ -573,6 +573,15 @@ interface RegistrationOptions {
573
573
  updateViaCache?: ServiceWorkerUpdateViaCache;
574
574
  }
575
575
 
576
+ interface Report {
577
+ body?: ReportBody | null;
578
+ type?: string;
579
+ url?: string;
580
+ }
581
+
582
+ interface ReportBody {
583
+ }
584
+
576
585
  interface ReportingObserverOptions {
577
586
  buffered?: boolean;
578
587
  types?: string[];
@@ -2343,7 +2352,7 @@ declare var CryptoKey: {
2343
2352
  };
2344
2353
 
2345
2354
  /**
2346
- * The **`CustomEvent`** interface represents events initialized by an application for any purpose.
2355
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
2347
2356
  *
2348
2357
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
2349
2358
  */
@@ -6553,57 +6562,6 @@ interface ReadableStreamGenericReader {
6553
6562
  cancel(reason?: any): Promise<void>;
6554
6563
  }
6555
6564
 
6556
- /**
6557
- * The `Report` interface of the Reporting API represents a single report.
6558
- *
6559
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
6560
- */
6561
- interface Report {
6562
- /**
6563
- * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information.
6564
- *
6565
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
6566
- */
6567
- readonly body: ReportBody | null;
6568
- /**
6569
- * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
6570
- *
6571
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
6572
- */
6573
- readonly type: string;
6574
- /**
6575
- * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
6576
- *
6577
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
6578
- */
6579
- readonly url: string;
6580
- toJSON(): any;
6581
- }
6582
-
6583
- declare var Report: {
6584
- prototype: Report;
6585
- new(): Report;
6586
- };
6587
-
6588
- /**
6589
- * The **`ReportBody`** interface of the Reporting API represents the body of a report.
6590
- *
6591
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
6592
- */
6593
- interface ReportBody {
6594
- /**
6595
- * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
6596
- *
6597
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
6598
- */
6599
- toJSON(): any;
6600
- }
6601
-
6602
- declare var ReportBody: {
6603
- prototype: ReportBody;
6604
- new(): ReportBody;
6605
- };
6606
-
6607
6565
  /**
6608
6566
  * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
6609
6567
  *
@@ -6953,7 +6911,7 @@ interface ServiceWorkerContainerEventMap {
6953
6911
  */
6954
6912
  interface ServiceWorkerContainer extends EventTarget {
6955
6913
  /**
6956
- * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
6914
+ * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker.
6957
6915
  *
6958
6916
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
6959
6917
  */
@@ -7345,7 +7303,7 @@ declare var SubtleCrypto: {
7345
7303
  };
7346
7304
 
7347
7305
  /**
7348
- * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.
7306
+ * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
7349
7307
  *
7350
7308
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
7351
7309
  */
@@ -7400,19 +7358,19 @@ declare var TextDecoderStream: {
7400
7358
  };
7401
7359
 
7402
7360
  /**
7403
- * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
7361
+ * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
7404
7362
  *
7405
7363
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
7406
7364
  */
7407
7365
  interface TextEncoder extends TextEncoderCommon {
7408
7366
  /**
7409
- * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
7367
+ * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
7410
7368
  *
7411
7369
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
7412
7370
  */
7413
7371
  encode(input?: string): Uint8Array<ArrayBuffer>;
7414
7372
  /**
7415
- * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
7373
+ * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding.
7416
7374
  *
7417
7375
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
7418
7376
  */
@@ -7705,6 +7663,11 @@ declare var URL: {
7705
7663
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
7706
7664
  */
7707
7665
  interface URLPattern {
7666
+ /**
7667
+ * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups.
7668
+ *
7669
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
7670
+ */
7708
7671
  readonly hasRegExpGroups: boolean;
7709
7672
  /**
7710
7673
  * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.141",
3
+ "version": "0.0.142",
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
@@ -573,6 +573,15 @@ interface RegistrationOptions {
573
573
  updateViaCache?: ServiceWorkerUpdateViaCache;
574
574
  }
575
575
 
576
+ interface Report {
577
+ body?: ReportBody | null;
578
+ type?: string;
579
+ url?: string;
580
+ }
581
+
582
+ interface ReportBody {
583
+ }
584
+
576
585
  interface ReportingObserverOptions {
577
586
  buffered?: boolean;
578
587
  types?: string[];
@@ -2343,7 +2352,7 @@ declare var CryptoKey: {
2343
2352
  };
2344
2353
 
2345
2354
  /**
2346
- * The **`CustomEvent`** interface represents events initialized by an application for any purpose.
2355
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
2347
2356
  *
2348
2357
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
2349
2358
  */
@@ -6553,57 +6562,6 @@ interface ReadableStreamGenericReader {
6553
6562
  cancel(reason?: any): Promise<void>;
6554
6563
  }
6555
6564
 
6556
- /**
6557
- * The `Report` interface of the Reporting API represents a single report.
6558
- *
6559
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
6560
- */
6561
- interface Report {
6562
- /**
6563
- * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information.
6564
- *
6565
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
6566
- */
6567
- readonly body: ReportBody | null;
6568
- /**
6569
- * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
6570
- *
6571
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
6572
- */
6573
- readonly type: string;
6574
- /**
6575
- * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
6576
- *
6577
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
6578
- */
6579
- readonly url: string;
6580
- toJSON(): any;
6581
- }
6582
-
6583
- declare var Report: {
6584
- prototype: Report;
6585
- new(): Report;
6586
- };
6587
-
6588
- /**
6589
- * The **`ReportBody`** interface of the Reporting API represents the body of a report.
6590
- *
6591
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
6592
- */
6593
- interface ReportBody {
6594
- /**
6595
- * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
6596
- *
6597
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
6598
- */
6599
- toJSON(): any;
6600
- }
6601
-
6602
- declare var ReportBody: {
6603
- prototype: ReportBody;
6604
- new(): ReportBody;
6605
- };
6606
-
6607
6565
  /**
6608
6566
  * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
6609
6567
  *
@@ -6953,7 +6911,7 @@ interface ServiceWorkerContainerEventMap {
6953
6911
  */
6954
6912
  interface ServiceWorkerContainer extends EventTarget {
6955
6913
  /**
6956
- * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
6914
+ * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker.
6957
6915
  *
6958
6916
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
6959
6917
  */
@@ -7345,7 +7303,7 @@ declare var SubtleCrypto: {
7345
7303
  };
7346
7304
 
7347
7305
  /**
7348
- * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.
7306
+ * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
7349
7307
  *
7350
7308
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
7351
7309
  */
@@ -7400,19 +7358,19 @@ declare var TextDecoderStream: {
7400
7358
  };
7401
7359
 
7402
7360
  /**
7403
- * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
7361
+ * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
7404
7362
  *
7405
7363
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
7406
7364
  */
7407
7365
  interface TextEncoder extends TextEncoderCommon {
7408
7366
  /**
7409
- * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
7367
+ * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
7410
7368
  *
7411
7369
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
7412
7370
  */
7413
7371
  encode(input?: string): Uint8Array;
7414
7372
  /**
7415
- * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
7373
+ * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding.
7416
7374
  *
7417
7375
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
7418
7376
  */
@@ -7705,6 +7663,11 @@ declare var URL: {
7705
7663
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
7706
7664
  */
7707
7665
  interface URLPattern {
7666
+ /**
7667
+ * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups.
7668
+ *
7669
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
7670
+ */
7708
7671
  readonly hasRegExpGroups: boolean;
7709
7672
  /**
7710
7673
  * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
package/ts5.6/index.d.ts CHANGED
@@ -573,6 +573,15 @@ interface RegistrationOptions {
573
573
  updateViaCache?: ServiceWorkerUpdateViaCache;
574
574
  }
575
575
 
576
+ interface Report {
577
+ body?: ReportBody | null;
578
+ type?: string;
579
+ url?: string;
580
+ }
581
+
582
+ interface ReportBody {
583
+ }
584
+
576
585
  interface ReportingObserverOptions {
577
586
  buffered?: boolean;
578
587
  types?: string[];
@@ -2343,7 +2352,7 @@ declare var CryptoKey: {
2343
2352
  };
2344
2353
 
2345
2354
  /**
2346
- * The **`CustomEvent`** interface represents events initialized by an application for any purpose.
2355
+ * The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
2347
2356
  *
2348
2357
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
2349
2358
  */
@@ -6553,57 +6562,6 @@ interface ReadableStreamGenericReader {
6553
6562
  cancel(reason?: any): Promise<void>;
6554
6563
  }
6555
6564
 
6556
- /**
6557
- * The `Report` interface of the Reporting API represents a single report.
6558
- *
6559
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
6560
- */
6561
- interface Report {
6562
- /**
6563
- * The **`body`** read-only property of the Report interface returns the body of the report, which is a `ReportBody` object containing the detailed report information.
6564
- *
6565
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
6566
- */
6567
- readonly body: ReportBody | null;
6568
- /**
6569
- * The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
6570
- *
6571
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
6572
- */
6573
- readonly type: string;
6574
- /**
6575
- * The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
6576
- *
6577
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
6578
- */
6579
- readonly url: string;
6580
- toJSON(): any;
6581
- }
6582
-
6583
- declare var Report: {
6584
- prototype: Report;
6585
- new(): Report;
6586
- };
6587
-
6588
- /**
6589
- * The **`ReportBody`** interface of the Reporting API represents the body of a report.
6590
- *
6591
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
6592
- */
6593
- interface ReportBody {
6594
- /**
6595
- * The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
6596
- *
6597
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
6598
- */
6599
- toJSON(): any;
6600
- }
6601
-
6602
- declare var ReportBody: {
6603
- prototype: ReportBody;
6604
- new(): ReportBody;
6605
- };
6606
-
6607
6565
  /**
6608
6566
  * The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
6609
6567
  *
@@ -6953,7 +6911,7 @@ interface ServiceWorkerContainerEventMap {
6953
6911
  */
6954
6912
  interface ServiceWorkerContainer extends EventTarget {
6955
6913
  /**
6956
- * The **`controller`** read-only property of the ServiceWorkerContainer interface returns a `activated` (the same object returned by `null` if the request is a force refresh (_Shift_ + refresh) or if there is no active worker.
6914
+ * The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active ServiceWorker controlling the current page (associated with this `ServiceWorkerContainer`), or `null` if the page has no active or activating service worker.
6957
6915
  *
6958
6916
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
6959
6917
  */
@@ -7345,7 +7303,7 @@ declare var SubtleCrypto: {
7345
7303
  };
7346
7304
 
7347
7305
  /**
7348
- * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, `KOI8-R`, `GBK`, etc.
7306
+ * The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
7349
7307
  *
7350
7308
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
7351
7309
  */
@@ -7400,19 +7358,19 @@ declare var TextDecoderStream: {
7400
7358
  };
7401
7359
 
7402
7360
  /**
7403
- * The **`TextEncoder`** interface takes a stream of code points as input and emits a stream of UTF-8 bytes.
7361
+ * The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
7404
7362
  *
7405
7363
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
7406
7364
  */
7407
7365
  interface TextEncoder extends TextEncoderCommon {
7408
7366
  /**
7409
- * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the text given in parameters encoded with the specific method for that TextEncoder object.
7367
+ * The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
7410
7368
  *
7411
7369
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
7412
7370
  */
7413
7371
  encode(input?: string): Uint8Array;
7414
7372
  /**
7415
- * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns a dictionary object indicating the progress of the encoding.
7373
+ * The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns an object indicating the progress of the encoding.
7416
7374
  *
7417
7375
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
7418
7376
  */
@@ -7705,6 +7663,11 @@ declare var URL: {
7705
7663
  * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
7706
7664
  */
7707
7665
  interface URLPattern {
7666
+ /**
7667
+ * The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the `URLPattern` components contain regular expression capturing groups.
7668
+ *
7669
+ * [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
7670
+ */
7708
7671
  readonly hasRegExpGroups: boolean;
7709
7672
  /**
7710
7673
  * The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.