@types/webworker 0.0.15 → 0.0.16
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 +1 -1
- package/index.d.ts +20 -57
- package/package.json +1 -1
- package/ts5.5/index.d.ts +20 -57
- package/ts5.6/index.d.ts +20 -57
package/README.md
CHANGED
|
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
|
|
|
45
45
|
|
|
46
46
|
## Deploy Metadata
|
|
47
47
|
|
|
48
|
-
You can read what changed in version 0.0.
|
|
48
|
+
You can read what changed in version 0.0.16 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.16.
|
package/index.d.ts
CHANGED
|
@@ -717,6 +717,15 @@ interface RegistrationOptions {
|
|
|
717
717
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
+
interface Report {
|
|
721
|
+
body?: ReportBody | null;
|
|
722
|
+
type?: string;
|
|
723
|
+
url?: string;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
interface ReportBody {
|
|
727
|
+
}
|
|
728
|
+
|
|
720
729
|
interface ReportingObserverOptions {
|
|
721
730
|
buffered?: boolean;
|
|
722
731
|
types?: string[];
|
|
@@ -2811,7 +2820,7 @@ declare var CryptoKey: {
|
|
|
2811
2820
|
};
|
|
2812
2821
|
|
|
2813
2822
|
/**
|
|
2814
|
-
* The **`CustomEvent`** interface
|
|
2823
|
+
* The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
|
|
2815
2824
|
*
|
|
2816
2825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
2817
2826
|
*/
|
|
@@ -7655,57 +7664,6 @@ interface ReadableStreamGenericReader {
|
|
|
7655
7664
|
cancel(reason?: any): Promise<void>;
|
|
7656
7665
|
}
|
|
7657
7666
|
|
|
7658
|
-
/**
|
|
7659
|
-
* The `Report` interface of the Reporting API represents a single report.
|
|
7660
|
-
*
|
|
7661
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
7662
|
-
*/
|
|
7663
|
-
interface Report {
|
|
7664
|
-
/**
|
|
7665
|
-
* 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.
|
|
7666
|
-
*
|
|
7667
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
|
|
7668
|
-
*/
|
|
7669
|
-
readonly body: ReportBody | null;
|
|
7670
|
-
/**
|
|
7671
|
-
* The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
|
|
7672
|
-
*
|
|
7673
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
|
|
7674
|
-
*/
|
|
7675
|
-
readonly type: string;
|
|
7676
|
-
/**
|
|
7677
|
-
* The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
7678
|
-
*
|
|
7679
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
7680
|
-
*/
|
|
7681
|
-
readonly url: string;
|
|
7682
|
-
toJSON(): any;
|
|
7683
|
-
}
|
|
7684
|
-
|
|
7685
|
-
declare var Report: {
|
|
7686
|
-
prototype: Report;
|
|
7687
|
-
new(): Report;
|
|
7688
|
-
};
|
|
7689
|
-
|
|
7690
|
-
/**
|
|
7691
|
-
* The **`ReportBody`** interface of the Reporting API represents the body of a report.
|
|
7692
|
-
*
|
|
7693
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
7694
|
-
*/
|
|
7695
|
-
interface ReportBody {
|
|
7696
|
-
/**
|
|
7697
|
-
* The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
|
|
7698
|
-
*
|
|
7699
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
|
|
7700
|
-
*/
|
|
7701
|
-
toJSON(): any;
|
|
7702
|
-
}
|
|
7703
|
-
|
|
7704
|
-
declare var ReportBody: {
|
|
7705
|
-
prototype: ReportBody;
|
|
7706
|
-
new(): ReportBody;
|
|
7707
|
-
};
|
|
7708
|
-
|
|
7709
7667
|
/**
|
|
7710
7668
|
* The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
|
|
7711
7669
|
*
|
|
@@ -8055,7 +8013,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
8055
8013
|
*/
|
|
8056
8014
|
interface ServiceWorkerContainer extends EventTarget {
|
|
8057
8015
|
/**
|
|
8058
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface
|
|
8016
|
+
* 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.
|
|
8059
8017
|
*
|
|
8060
8018
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
8061
8019
|
*/
|
|
@@ -8482,7 +8440,7 @@ declare var SubtleCrypto: {
|
|
|
8482
8440
|
};
|
|
8483
8441
|
|
|
8484
8442
|
/**
|
|
8485
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`,
|
|
8443
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
8486
8444
|
*
|
|
8487
8445
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
8488
8446
|
*/
|
|
@@ -8537,19 +8495,19 @@ declare var TextDecoderStream: {
|
|
|
8537
8495
|
};
|
|
8538
8496
|
|
|
8539
8497
|
/**
|
|
8540
|
-
* The **`TextEncoder`** interface
|
|
8498
|
+
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
|
|
8541
8499
|
*
|
|
8542
8500
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
8543
8501
|
*/
|
|
8544
8502
|
interface TextEncoder extends TextEncoderCommon {
|
|
8545
8503
|
/**
|
|
8546
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the
|
|
8504
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
|
|
8547
8505
|
*
|
|
8548
8506
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
8549
8507
|
*/
|
|
8550
8508
|
encode(input?: string): Uint8Array<ArrayBuffer>;
|
|
8551
8509
|
/**
|
|
8552
|
-
* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns
|
|
8510
|
+
* 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.
|
|
8553
8511
|
*
|
|
8554
8512
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
8555
8513
|
*/
|
|
@@ -8854,6 +8812,11 @@ declare var URL: {
|
|
|
8854
8812
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
8855
8813
|
*/
|
|
8856
8814
|
interface URLPattern {
|
|
8815
|
+
/**
|
|
8816
|
+
* 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.
|
|
8817
|
+
*
|
|
8818
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
|
|
8819
|
+
*/
|
|
8857
8820
|
readonly hasRegExpGroups: boolean;
|
|
8858
8821
|
/**
|
|
8859
8822
|
* 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
package/ts5.5/index.d.ts
CHANGED
|
@@ -717,6 +717,15 @@ interface RegistrationOptions {
|
|
|
717
717
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
+
interface Report {
|
|
721
|
+
body?: ReportBody | null;
|
|
722
|
+
type?: string;
|
|
723
|
+
url?: string;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
interface ReportBody {
|
|
727
|
+
}
|
|
728
|
+
|
|
720
729
|
interface ReportingObserverOptions {
|
|
721
730
|
buffered?: boolean;
|
|
722
731
|
types?: string[];
|
|
@@ -2811,7 +2820,7 @@ declare var CryptoKey: {
|
|
|
2811
2820
|
};
|
|
2812
2821
|
|
|
2813
2822
|
/**
|
|
2814
|
-
* The **`CustomEvent`** interface
|
|
2823
|
+
* The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
|
|
2815
2824
|
*
|
|
2816
2825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
2817
2826
|
*/
|
|
@@ -7655,57 +7664,6 @@ interface ReadableStreamGenericReader {
|
|
|
7655
7664
|
cancel(reason?: any): Promise<void>;
|
|
7656
7665
|
}
|
|
7657
7666
|
|
|
7658
|
-
/**
|
|
7659
|
-
* The `Report` interface of the Reporting API represents a single report.
|
|
7660
|
-
*
|
|
7661
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
7662
|
-
*/
|
|
7663
|
-
interface Report {
|
|
7664
|
-
/**
|
|
7665
|
-
* 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.
|
|
7666
|
-
*
|
|
7667
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
|
|
7668
|
-
*/
|
|
7669
|
-
readonly body: ReportBody | null;
|
|
7670
|
-
/**
|
|
7671
|
-
* The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
|
|
7672
|
-
*
|
|
7673
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
|
|
7674
|
-
*/
|
|
7675
|
-
readonly type: string;
|
|
7676
|
-
/**
|
|
7677
|
-
* The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
7678
|
-
*
|
|
7679
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
7680
|
-
*/
|
|
7681
|
-
readonly url: string;
|
|
7682
|
-
toJSON(): any;
|
|
7683
|
-
}
|
|
7684
|
-
|
|
7685
|
-
declare var Report: {
|
|
7686
|
-
prototype: Report;
|
|
7687
|
-
new(): Report;
|
|
7688
|
-
};
|
|
7689
|
-
|
|
7690
|
-
/**
|
|
7691
|
-
* The **`ReportBody`** interface of the Reporting API represents the body of a report.
|
|
7692
|
-
*
|
|
7693
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
7694
|
-
*/
|
|
7695
|
-
interface ReportBody {
|
|
7696
|
-
/**
|
|
7697
|
-
* The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
|
|
7698
|
-
*
|
|
7699
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
|
|
7700
|
-
*/
|
|
7701
|
-
toJSON(): any;
|
|
7702
|
-
}
|
|
7703
|
-
|
|
7704
|
-
declare var ReportBody: {
|
|
7705
|
-
prototype: ReportBody;
|
|
7706
|
-
new(): ReportBody;
|
|
7707
|
-
};
|
|
7708
|
-
|
|
7709
7667
|
/**
|
|
7710
7668
|
* The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
|
|
7711
7669
|
*
|
|
@@ -8055,7 +8013,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
8055
8013
|
*/
|
|
8056
8014
|
interface ServiceWorkerContainer extends EventTarget {
|
|
8057
8015
|
/**
|
|
8058
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface
|
|
8016
|
+
* 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.
|
|
8059
8017
|
*
|
|
8060
8018
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
8061
8019
|
*/
|
|
@@ -8482,7 +8440,7 @@ declare var SubtleCrypto: {
|
|
|
8482
8440
|
};
|
|
8483
8441
|
|
|
8484
8442
|
/**
|
|
8485
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`,
|
|
8443
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
8486
8444
|
*
|
|
8487
8445
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
8488
8446
|
*/
|
|
@@ -8537,19 +8495,19 @@ declare var TextDecoderStream: {
|
|
|
8537
8495
|
};
|
|
8538
8496
|
|
|
8539
8497
|
/**
|
|
8540
|
-
* The **`TextEncoder`** interface
|
|
8498
|
+
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
|
|
8541
8499
|
*
|
|
8542
8500
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
8543
8501
|
*/
|
|
8544
8502
|
interface TextEncoder extends TextEncoderCommon {
|
|
8545
8503
|
/**
|
|
8546
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the
|
|
8504
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
|
|
8547
8505
|
*
|
|
8548
8506
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
8549
8507
|
*/
|
|
8550
8508
|
encode(input?: string): Uint8Array;
|
|
8551
8509
|
/**
|
|
8552
|
-
* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns
|
|
8510
|
+
* 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.
|
|
8553
8511
|
*
|
|
8554
8512
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
8555
8513
|
*/
|
|
@@ -8854,6 +8812,11 @@ declare var URL: {
|
|
|
8854
8812
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
8855
8813
|
*/
|
|
8856
8814
|
interface URLPattern {
|
|
8815
|
+
/**
|
|
8816
|
+
* 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.
|
|
8817
|
+
*
|
|
8818
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
|
|
8819
|
+
*/
|
|
8857
8820
|
readonly hasRegExpGroups: boolean;
|
|
8858
8821
|
/**
|
|
8859
8822
|
* 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
|
@@ -717,6 +717,15 @@ interface RegistrationOptions {
|
|
|
717
717
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
+
interface Report {
|
|
721
|
+
body?: ReportBody | null;
|
|
722
|
+
type?: string;
|
|
723
|
+
url?: string;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
interface ReportBody {
|
|
727
|
+
}
|
|
728
|
+
|
|
720
729
|
interface ReportingObserverOptions {
|
|
721
730
|
buffered?: boolean;
|
|
722
731
|
types?: string[];
|
|
@@ -2811,7 +2820,7 @@ declare var CryptoKey: {
|
|
|
2811
2820
|
};
|
|
2812
2821
|
|
|
2813
2822
|
/**
|
|
2814
|
-
* The **`CustomEvent`** interface
|
|
2823
|
+
* The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
|
|
2815
2824
|
*
|
|
2816
2825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
2817
2826
|
*/
|
|
@@ -7655,57 +7664,6 @@ interface ReadableStreamGenericReader {
|
|
|
7655
7664
|
cancel(reason?: any): Promise<void>;
|
|
7656
7665
|
}
|
|
7657
7666
|
|
|
7658
|
-
/**
|
|
7659
|
-
* The `Report` interface of the Reporting API represents a single report.
|
|
7660
|
-
*
|
|
7661
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
7662
|
-
*/
|
|
7663
|
-
interface Report {
|
|
7664
|
-
/**
|
|
7665
|
-
* 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.
|
|
7666
|
-
*
|
|
7667
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
|
|
7668
|
-
*/
|
|
7669
|
-
readonly body: ReportBody | null;
|
|
7670
|
-
/**
|
|
7671
|
-
* The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
|
|
7672
|
-
*
|
|
7673
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
|
|
7674
|
-
*/
|
|
7675
|
-
readonly type: string;
|
|
7676
|
-
/**
|
|
7677
|
-
* The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
7678
|
-
*
|
|
7679
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
7680
|
-
*/
|
|
7681
|
-
readonly url: string;
|
|
7682
|
-
toJSON(): any;
|
|
7683
|
-
}
|
|
7684
|
-
|
|
7685
|
-
declare var Report: {
|
|
7686
|
-
prototype: Report;
|
|
7687
|
-
new(): Report;
|
|
7688
|
-
};
|
|
7689
|
-
|
|
7690
|
-
/**
|
|
7691
|
-
* The **`ReportBody`** interface of the Reporting API represents the body of a report.
|
|
7692
|
-
*
|
|
7693
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
7694
|
-
*/
|
|
7695
|
-
interface ReportBody {
|
|
7696
|
-
/**
|
|
7697
|
-
* The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
|
|
7698
|
-
*
|
|
7699
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
|
|
7700
|
-
*/
|
|
7701
|
-
toJSON(): any;
|
|
7702
|
-
}
|
|
7703
|
-
|
|
7704
|
-
declare var ReportBody: {
|
|
7705
|
-
prototype: ReportBody;
|
|
7706
|
-
new(): ReportBody;
|
|
7707
|
-
};
|
|
7708
|
-
|
|
7709
7667
|
/**
|
|
7710
7668
|
* The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
|
|
7711
7669
|
*
|
|
@@ -8055,7 +8013,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
8055
8013
|
*/
|
|
8056
8014
|
interface ServiceWorkerContainer extends EventTarget {
|
|
8057
8015
|
/**
|
|
8058
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface
|
|
8016
|
+
* 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.
|
|
8059
8017
|
*
|
|
8060
8018
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
8061
8019
|
*/
|
|
@@ -8482,7 +8440,7 @@ declare var SubtleCrypto: {
|
|
|
8482
8440
|
};
|
|
8483
8441
|
|
|
8484
8442
|
/**
|
|
8485
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`,
|
|
8443
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
8486
8444
|
*
|
|
8487
8445
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
8488
8446
|
*/
|
|
@@ -8537,19 +8495,19 @@ declare var TextDecoderStream: {
|
|
|
8537
8495
|
};
|
|
8538
8496
|
|
|
8539
8497
|
/**
|
|
8540
|
-
* The **`TextEncoder`** interface
|
|
8498
|
+
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
|
|
8541
8499
|
*
|
|
8542
8500
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
8543
8501
|
*/
|
|
8544
8502
|
interface TextEncoder extends TextEncoderCommon {
|
|
8545
8503
|
/**
|
|
8546
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the
|
|
8504
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
|
|
8547
8505
|
*
|
|
8548
8506
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
8549
8507
|
*/
|
|
8550
8508
|
encode(input?: string): Uint8Array;
|
|
8551
8509
|
/**
|
|
8552
|
-
* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns
|
|
8510
|
+
* 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.
|
|
8553
8511
|
*
|
|
8554
8512
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
8555
8513
|
*/
|
|
@@ -8854,6 +8812,11 @@ declare var URL: {
|
|
|
8854
8812
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
8855
8813
|
*/
|
|
8856
8814
|
interface URLPattern {
|
|
8815
|
+
/**
|
|
8816
|
+
* 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.
|
|
8817
|
+
*
|
|
8818
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
|
|
8819
|
+
*/
|
|
8857
8820
|
readonly hasRegExpGroups: boolean;
|
|
8858
8821
|
/**
|
|
8859
8822
|
* The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
|