@types/sharedworker 0.0.168 → 0.0.170
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 +21 -58
- package/package.json +1 -1
- package/ts5.5/index.d.ts +21 -58
- package/ts5.6/index.d.ts +21 -58
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.
|
|
31
|
+
You can read what changed in version 0.0.170 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.170.
|
package/index.d.ts
CHANGED
|
@@ -503,6 +503,15 @@ interface RegistrationOptions {
|
|
|
503
503
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
+
interface Report {
|
|
507
|
+
body?: ReportBody | null;
|
|
508
|
+
type?: string;
|
|
509
|
+
url?: string;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
interface ReportBody {
|
|
513
|
+
}
|
|
514
|
+
|
|
506
515
|
interface ReportingObserverOptions {
|
|
507
516
|
buffered?: boolean;
|
|
508
517
|
types?: string[];
|
|
@@ -872,7 +881,7 @@ declare var AbortSignal: {
|
|
|
872
881
|
*
|
|
873
882
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
874
883
|
*/
|
|
875
|
-
|
|
884
|
+
abort(reason?: any): AbortSignal;
|
|
876
885
|
/**
|
|
877
886
|
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
878
887
|
*
|
|
@@ -2124,7 +2133,7 @@ declare var CryptoKey: {
|
|
|
2124
2133
|
};
|
|
2125
2134
|
|
|
2126
2135
|
/**
|
|
2127
|
-
* The **`CustomEvent`** interface
|
|
2136
|
+
* The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
|
|
2128
2137
|
*
|
|
2129
2138
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
2130
2139
|
*/
|
|
@@ -6136,57 +6145,6 @@ interface ReadableStreamGenericReader {
|
|
|
6136
6145
|
cancel(reason?: any): Promise<void>;
|
|
6137
6146
|
}
|
|
6138
6147
|
|
|
6139
|
-
/**
|
|
6140
|
-
* The `Report` interface of the Reporting API represents a single report.
|
|
6141
|
-
*
|
|
6142
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
6143
|
-
*/
|
|
6144
|
-
interface Report {
|
|
6145
|
-
/**
|
|
6146
|
-
* 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.
|
|
6147
|
-
*
|
|
6148
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
|
|
6149
|
-
*/
|
|
6150
|
-
readonly body: ReportBody | null;
|
|
6151
|
-
/**
|
|
6152
|
-
* The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
|
|
6153
|
-
*
|
|
6154
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
|
|
6155
|
-
*/
|
|
6156
|
-
readonly type: string;
|
|
6157
|
-
/**
|
|
6158
|
-
* The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
6159
|
-
*
|
|
6160
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
6161
|
-
*/
|
|
6162
|
-
readonly url: string;
|
|
6163
|
-
toJSON(): any;
|
|
6164
|
-
}
|
|
6165
|
-
|
|
6166
|
-
declare var Report: {
|
|
6167
|
-
prototype: Report;
|
|
6168
|
-
new(): Report;
|
|
6169
|
-
};
|
|
6170
|
-
|
|
6171
|
-
/**
|
|
6172
|
-
* The **`ReportBody`** interface of the Reporting API represents the body of a report.
|
|
6173
|
-
*
|
|
6174
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
6175
|
-
*/
|
|
6176
|
-
interface ReportBody {
|
|
6177
|
-
/**
|
|
6178
|
-
* The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
|
|
6179
|
-
*
|
|
6180
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
|
|
6181
|
-
*/
|
|
6182
|
-
toJSON(): any;
|
|
6183
|
-
}
|
|
6184
|
-
|
|
6185
|
-
declare var ReportBody: {
|
|
6186
|
-
prototype: ReportBody;
|
|
6187
|
-
new(): ReportBody;
|
|
6188
|
-
};
|
|
6189
|
-
|
|
6190
6148
|
/**
|
|
6191
6149
|
* The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
|
|
6192
6150
|
*
|
|
@@ -6536,7 +6494,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
6536
6494
|
*/
|
|
6537
6495
|
interface ServiceWorkerContainer extends EventTarget {
|
|
6538
6496
|
/**
|
|
6539
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface
|
|
6497
|
+
* 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.
|
|
6540
6498
|
*
|
|
6541
6499
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
6542
6500
|
*/
|
|
@@ -6876,7 +6834,7 @@ declare var SubtleCrypto: {
|
|
|
6876
6834
|
};
|
|
6877
6835
|
|
|
6878
6836
|
/**
|
|
6879
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`,
|
|
6837
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
6880
6838
|
*
|
|
6881
6839
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
6882
6840
|
*/
|
|
@@ -6931,19 +6889,19 @@ declare var TextDecoderStream: {
|
|
|
6931
6889
|
};
|
|
6932
6890
|
|
|
6933
6891
|
/**
|
|
6934
|
-
* The **`TextEncoder`** interface
|
|
6892
|
+
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
|
|
6935
6893
|
*
|
|
6936
6894
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
6937
6895
|
*/
|
|
6938
6896
|
interface TextEncoder extends TextEncoderCommon {
|
|
6939
6897
|
/**
|
|
6940
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the
|
|
6898
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
|
|
6941
6899
|
*
|
|
6942
6900
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
6943
6901
|
*/
|
|
6944
6902
|
encode(input?: string): Uint8Array<ArrayBuffer>;
|
|
6945
6903
|
/**
|
|
6946
|
-
* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns
|
|
6904
|
+
* 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.
|
|
6947
6905
|
*
|
|
6948
6906
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
6949
6907
|
*/
|
|
@@ -7248,6 +7206,11 @@ declare var URL: {
|
|
|
7248
7206
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
7249
7207
|
*/
|
|
7250
7208
|
interface URLPattern {
|
|
7209
|
+
/**
|
|
7210
|
+
* 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.
|
|
7211
|
+
*
|
|
7212
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
|
|
7213
|
+
*/
|
|
7251
7214
|
readonly hasRegExpGroups: boolean;
|
|
7252
7215
|
/**
|
|
7253
7216
|
* 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
|
@@ -503,6 +503,15 @@ interface RegistrationOptions {
|
|
|
503
503
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
+
interface Report {
|
|
507
|
+
body?: ReportBody | null;
|
|
508
|
+
type?: string;
|
|
509
|
+
url?: string;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
interface ReportBody {
|
|
513
|
+
}
|
|
514
|
+
|
|
506
515
|
interface ReportingObserverOptions {
|
|
507
516
|
buffered?: boolean;
|
|
508
517
|
types?: string[];
|
|
@@ -872,7 +881,7 @@ declare var AbortSignal: {
|
|
|
872
881
|
*
|
|
873
882
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
874
883
|
*/
|
|
875
|
-
|
|
884
|
+
abort(reason?: any): AbortSignal;
|
|
876
885
|
/**
|
|
877
886
|
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
878
887
|
*
|
|
@@ -2124,7 +2133,7 @@ declare var CryptoKey: {
|
|
|
2124
2133
|
};
|
|
2125
2134
|
|
|
2126
2135
|
/**
|
|
2127
|
-
* The **`CustomEvent`** interface
|
|
2136
|
+
* The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
|
|
2128
2137
|
*
|
|
2129
2138
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
2130
2139
|
*/
|
|
@@ -6136,57 +6145,6 @@ interface ReadableStreamGenericReader {
|
|
|
6136
6145
|
cancel(reason?: any): Promise<void>;
|
|
6137
6146
|
}
|
|
6138
6147
|
|
|
6139
|
-
/**
|
|
6140
|
-
* The `Report` interface of the Reporting API represents a single report.
|
|
6141
|
-
*
|
|
6142
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
6143
|
-
*/
|
|
6144
|
-
interface Report {
|
|
6145
|
-
/**
|
|
6146
|
-
* 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.
|
|
6147
|
-
*
|
|
6148
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
|
|
6149
|
-
*/
|
|
6150
|
-
readonly body: ReportBody | null;
|
|
6151
|
-
/**
|
|
6152
|
-
* The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
|
|
6153
|
-
*
|
|
6154
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
|
|
6155
|
-
*/
|
|
6156
|
-
readonly type: string;
|
|
6157
|
-
/**
|
|
6158
|
-
* The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
6159
|
-
*
|
|
6160
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
6161
|
-
*/
|
|
6162
|
-
readonly url: string;
|
|
6163
|
-
toJSON(): any;
|
|
6164
|
-
}
|
|
6165
|
-
|
|
6166
|
-
declare var Report: {
|
|
6167
|
-
prototype: Report;
|
|
6168
|
-
new(): Report;
|
|
6169
|
-
};
|
|
6170
|
-
|
|
6171
|
-
/**
|
|
6172
|
-
* The **`ReportBody`** interface of the Reporting API represents the body of a report.
|
|
6173
|
-
*
|
|
6174
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
6175
|
-
*/
|
|
6176
|
-
interface ReportBody {
|
|
6177
|
-
/**
|
|
6178
|
-
* The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
|
|
6179
|
-
*
|
|
6180
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
|
|
6181
|
-
*/
|
|
6182
|
-
toJSON(): any;
|
|
6183
|
-
}
|
|
6184
|
-
|
|
6185
|
-
declare var ReportBody: {
|
|
6186
|
-
prototype: ReportBody;
|
|
6187
|
-
new(): ReportBody;
|
|
6188
|
-
};
|
|
6189
|
-
|
|
6190
6148
|
/**
|
|
6191
6149
|
* The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
|
|
6192
6150
|
*
|
|
@@ -6536,7 +6494,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
6536
6494
|
*/
|
|
6537
6495
|
interface ServiceWorkerContainer extends EventTarget {
|
|
6538
6496
|
/**
|
|
6539
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface
|
|
6497
|
+
* 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.
|
|
6540
6498
|
*
|
|
6541
6499
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
6542
6500
|
*/
|
|
@@ -6876,7 +6834,7 @@ declare var SubtleCrypto: {
|
|
|
6876
6834
|
};
|
|
6877
6835
|
|
|
6878
6836
|
/**
|
|
6879
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`,
|
|
6837
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
6880
6838
|
*
|
|
6881
6839
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
6882
6840
|
*/
|
|
@@ -6931,19 +6889,19 @@ declare var TextDecoderStream: {
|
|
|
6931
6889
|
};
|
|
6932
6890
|
|
|
6933
6891
|
/**
|
|
6934
|
-
* The **`TextEncoder`** interface
|
|
6892
|
+
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
|
|
6935
6893
|
*
|
|
6936
6894
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
6937
6895
|
*/
|
|
6938
6896
|
interface TextEncoder extends TextEncoderCommon {
|
|
6939
6897
|
/**
|
|
6940
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the
|
|
6898
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
|
|
6941
6899
|
*
|
|
6942
6900
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
6943
6901
|
*/
|
|
6944
6902
|
encode(input?: string): Uint8Array;
|
|
6945
6903
|
/**
|
|
6946
|
-
* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns
|
|
6904
|
+
* 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.
|
|
6947
6905
|
*
|
|
6948
6906
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
6949
6907
|
*/
|
|
@@ -7248,6 +7206,11 @@ declare var URL: {
|
|
|
7248
7206
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
7249
7207
|
*/
|
|
7250
7208
|
interface URLPattern {
|
|
7209
|
+
/**
|
|
7210
|
+
* 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.
|
|
7211
|
+
*
|
|
7212
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
|
|
7213
|
+
*/
|
|
7251
7214
|
readonly hasRegExpGroups: boolean;
|
|
7252
7215
|
/**
|
|
7253
7216
|
* 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
|
@@ -503,6 +503,15 @@ interface RegistrationOptions {
|
|
|
503
503
|
updateViaCache?: ServiceWorkerUpdateViaCache;
|
|
504
504
|
}
|
|
505
505
|
|
|
506
|
+
interface Report {
|
|
507
|
+
body?: ReportBody | null;
|
|
508
|
+
type?: string;
|
|
509
|
+
url?: string;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
interface ReportBody {
|
|
513
|
+
}
|
|
514
|
+
|
|
506
515
|
interface ReportingObserverOptions {
|
|
507
516
|
buffered?: boolean;
|
|
508
517
|
types?: string[];
|
|
@@ -872,7 +881,7 @@ declare var AbortSignal: {
|
|
|
872
881
|
*
|
|
873
882
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
874
883
|
*/
|
|
875
|
-
|
|
884
|
+
abort(reason?: any): AbortSignal;
|
|
876
885
|
/**
|
|
877
886
|
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
878
887
|
*
|
|
@@ -2124,7 +2133,7 @@ declare var CryptoKey: {
|
|
|
2124
2133
|
};
|
|
2125
2134
|
|
|
2126
2135
|
/**
|
|
2127
|
-
* The **`CustomEvent`** interface
|
|
2136
|
+
* The **`CustomEvent`** interface can be used to attach custom data to an event generated by an application.
|
|
2128
2137
|
*
|
|
2129
2138
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent)
|
|
2130
2139
|
*/
|
|
@@ -6136,57 +6145,6 @@ interface ReadableStreamGenericReader {
|
|
|
6136
6145
|
cancel(reason?: any): Promise<void>;
|
|
6137
6146
|
}
|
|
6138
6147
|
|
|
6139
|
-
/**
|
|
6140
|
-
* The `Report` interface of the Reporting API represents a single report.
|
|
6141
|
-
*
|
|
6142
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report)
|
|
6143
|
-
*/
|
|
6144
|
-
interface Report {
|
|
6145
|
-
/**
|
|
6146
|
-
* 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.
|
|
6147
|
-
*
|
|
6148
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body)
|
|
6149
|
-
*/
|
|
6150
|
-
readonly body: ReportBody | null;
|
|
6151
|
-
/**
|
|
6152
|
-
* The **`type`** read-only property of the Report interface returns the type of report generated, e.g., `deprecation` or `intervention`.
|
|
6153
|
-
*
|
|
6154
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type)
|
|
6155
|
-
*/
|
|
6156
|
-
readonly type: string;
|
|
6157
|
-
/**
|
|
6158
|
-
* The **`url`** read-only property of the Report interface returns the URL of the document that generated the report.
|
|
6159
|
-
*
|
|
6160
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url)
|
|
6161
|
-
*/
|
|
6162
|
-
readonly url: string;
|
|
6163
|
-
toJSON(): any;
|
|
6164
|
-
}
|
|
6165
|
-
|
|
6166
|
-
declare var Report: {
|
|
6167
|
-
prototype: Report;
|
|
6168
|
-
new(): Report;
|
|
6169
|
-
};
|
|
6170
|
-
|
|
6171
|
-
/**
|
|
6172
|
-
* The **`ReportBody`** interface of the Reporting API represents the body of a report.
|
|
6173
|
-
*
|
|
6174
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody)
|
|
6175
|
-
*/
|
|
6176
|
-
interface ReportBody {
|
|
6177
|
-
/**
|
|
6178
|
-
* The **`toJSON()`** method of the ReportBody interface is a _serializer_, and returns a JSON representation of the `ReportBody` object.
|
|
6179
|
-
*
|
|
6180
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody/toJSON)
|
|
6181
|
-
*/
|
|
6182
|
-
toJSON(): any;
|
|
6183
|
-
}
|
|
6184
|
-
|
|
6185
|
-
declare var ReportBody: {
|
|
6186
|
-
prototype: ReportBody;
|
|
6187
|
-
new(): ReportBody;
|
|
6188
|
-
};
|
|
6189
|
-
|
|
6190
6148
|
/**
|
|
6191
6149
|
* The `ReportingObserver` interface of the Reporting API allows you to collect and access reports.
|
|
6192
6150
|
*
|
|
@@ -6536,7 +6494,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
6536
6494
|
*/
|
|
6537
6495
|
interface ServiceWorkerContainer extends EventTarget {
|
|
6538
6496
|
/**
|
|
6539
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface
|
|
6497
|
+
* 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.
|
|
6540
6498
|
*
|
|
6541
6499
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
6542
6500
|
*/
|
|
@@ -6876,7 +6834,7 @@ declare var SubtleCrypto: {
|
|
|
6876
6834
|
};
|
|
6877
6835
|
|
|
6878
6836
|
/**
|
|
6879
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`,
|
|
6837
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as `UTF-8`, `ISO-8859-2`, or `GBK`.
|
|
6880
6838
|
*
|
|
6881
6839
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
6882
6840
|
*/
|
|
@@ -6931,19 +6889,19 @@ declare var TextDecoderStream: {
|
|
|
6931
6889
|
};
|
|
6932
6890
|
|
|
6933
6891
|
/**
|
|
6934
|
-
* The **`TextEncoder`** interface
|
|
6892
|
+
* The **`TextEncoder`** interface enables you to character encoding a JavaScript string using UTF-8.
|
|
6935
6893
|
*
|
|
6936
6894
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
6937
6895
|
*/
|
|
6938
6896
|
interface TextEncoder extends TextEncoderCommon {
|
|
6939
6897
|
/**
|
|
6940
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the
|
|
6898
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Global_Objects/Uint8Array containing the string character encoding using UTF-8.
|
|
6941
6899
|
*
|
|
6942
6900
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
6943
6901
|
*/
|
|
6944
6902
|
encode(input?: string): Uint8Array;
|
|
6945
6903
|
/**
|
|
6946
|
-
* The **`TextEncoder.encodeInto()`** method takes a string to encode and a destination Uint8Array to put resulting UTF-8 encoded text into, and returns
|
|
6904
|
+
* 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.
|
|
6947
6905
|
*
|
|
6948
6906
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
6949
6907
|
*/
|
|
@@ -7248,6 +7206,11 @@ declare var URL: {
|
|
|
7248
7206
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
7249
7207
|
*/
|
|
7250
7208
|
interface URLPattern {
|
|
7209
|
+
/**
|
|
7210
|
+
* 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.
|
|
7211
|
+
*
|
|
7212
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
|
|
7213
|
+
*/
|
|
7251
7214
|
readonly hasRegExpGroups: boolean;
|
|
7252
7215
|
/**
|
|
7253
7216
|
* The **`hash`** read-only property of the URLPattern interface is a string containing the pattern used to match the fragment part of a URL.
|