@types/serviceworker 0.0.162 → 0.0.164
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 +577 -577
- package/package.json +1 -1
- package/ts5.5/index.d.ts +570 -570
- package/ts5.5/iterable.d.ts +7 -7
- package/ts5.6/index.d.ts +570 -570
- package/ts5.6/iterable.d.ts +7 -7
- package/ts5.9/index.d.ts +570 -570
- package/ts5.9/iterable.d.ts +7 -7
package/index.d.ts
CHANGED
|
@@ -885,19 +885,19 @@ interface WriteParams {
|
|
|
885
885
|
*/
|
|
886
886
|
interface ANGLE_instanced_arrays {
|
|
887
887
|
/**
|
|
888
|
-
* The **`ANGLE_instanced_arrays.drawArraysInstancedANGLE()`** method of the WebGL API renders primitives from array data like the
|
|
888
|
+
* The **`ANGLE_instanced_arrays.drawArraysInstancedANGLE()`** method of the WebGL API renders primitives from array data like the gl.drawArrays() method. In addition, it can execute multiple instances of the range of elements.
|
|
889
889
|
*
|
|
890
890
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)
|
|
891
891
|
*/
|
|
892
892
|
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
|
|
893
893
|
/**
|
|
894
|
-
* The **`ANGLE_instanced_arrays.drawElementsInstancedANGLE()`** method of the WebGL API renders primitives from array data like the
|
|
894
|
+
* The **`ANGLE_instanced_arrays.drawElementsInstancedANGLE()`** method of the WebGL API renders primitives from array data like the gl.drawElements() method. In addition, it can execute multiple instances of a set of elements.
|
|
895
895
|
*
|
|
896
896
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)
|
|
897
897
|
*/
|
|
898
898
|
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
|
|
899
899
|
/**
|
|
900
|
-
* The
|
|
900
|
+
* The **`ANGLE_instanced_arrays.vertexAttribDivisorANGLE()`** method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE().
|
|
901
901
|
*
|
|
902
902
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)
|
|
903
903
|
*/
|
|
@@ -918,7 +918,7 @@ interface AbortController {
|
|
|
918
918
|
*/
|
|
919
919
|
readonly signal: AbortSignal;
|
|
920
920
|
/**
|
|
921
|
-
* The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed.
|
|
921
|
+
* The **`abort()`** method of the AbortController interface aborts an asynchronous operation before it has completed. This is able to abort fetch requests, the consumption of any response bodies, or streams.
|
|
922
922
|
*
|
|
923
923
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
|
|
924
924
|
*/
|
|
@@ -941,7 +941,7 @@ interface AbortSignalEventMap {
|
|
|
941
941
|
*/
|
|
942
942
|
interface AbortSignal extends EventTarget {
|
|
943
943
|
/**
|
|
944
|
-
* The **`aborted`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (
|
|
944
|
+
* The **`aborted`** read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (true) or not (false).
|
|
945
945
|
*
|
|
946
946
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
|
|
947
947
|
*/
|
|
@@ -955,7 +955,7 @@ interface AbortSignal extends EventTarget {
|
|
|
955
955
|
*/
|
|
956
956
|
readonly reason: any;
|
|
957
957
|
/**
|
|
958
|
-
* The **`throwIfAborted()`** method throws the signal's abort
|
|
958
|
+
* The **`throwIfAborted()`** method throws the signal's abort reason if the signal has been aborted; otherwise it does nothing.
|
|
959
959
|
*
|
|
960
960
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted)
|
|
961
961
|
*/
|
|
@@ -970,13 +970,13 @@ declare var AbortSignal: {
|
|
|
970
970
|
prototype: AbortSignal;
|
|
971
971
|
new(): AbortSignal;
|
|
972
972
|
/**
|
|
973
|
-
* The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an
|
|
973
|
+
* The **`AbortSignal.abort()`** static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event).
|
|
974
974
|
*
|
|
975
975
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static)
|
|
976
976
|
*/
|
|
977
977
|
abort(reason?: any): AbortSignal;
|
|
978
978
|
/**
|
|
979
|
-
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal.
|
|
979
|
+
* The **`AbortSignal.any()`** static method takes an iterable of abort signals and returns an AbortSignal. The returned abort signal is aborted when any of the input iterable abort signals are aborted. The abort reason will be set to the reason of the first signal that is aborted. If any of the given abort signals are already aborted then so will be the returned AbortSignal.
|
|
980
980
|
*
|
|
981
981
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static)
|
|
982
982
|
*/
|
|
@@ -1033,13 +1033,13 @@ interface Blob {
|
|
|
1033
1033
|
*/
|
|
1034
1034
|
bytes(): Promise<Uint8Array<ArrayBuffer>>;
|
|
1035
1035
|
/**
|
|
1036
|
-
* The **`slice()`** method of the Blob interface creates and returns a new
|
|
1036
|
+
* The **`slice()`** method of the Blob interface creates and returns a new Blob object which contains data from a subset of the blob on which it's called.
|
|
1037
1037
|
*
|
|
1038
1038
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice)
|
|
1039
1039
|
*/
|
|
1040
1040
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
1041
1041
|
/**
|
|
1042
|
-
* The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the
|
|
1042
|
+
* The **`stream()`** method of the Blob interface returns a ReadableStream which upon reading returns the data contained within the Blob.
|
|
1043
1043
|
*
|
|
1044
1044
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream)
|
|
1045
1045
|
*/
|
|
@@ -1082,13 +1082,13 @@ interface BroadcastChannelEventMap {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
|
|
1084
1084
|
/**
|
|
1085
|
-
* The **`BroadcastChannel`** interface represents a named channel that any browsing context of a given origin can subscribe to.
|
|
1085
|
+
* The **`BroadcastChannel`** interface represents a named channel that any browsing context of a given origin can subscribe to. It allows communication between different documents (in different windows, tabs, frames or iframes) of the same origin. Messages are broadcasted via a message event fired at all BroadcastChannel objects listening to the channel, except the object that sent the message.
|
|
1086
1086
|
*
|
|
1087
1087
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel)
|
|
1088
1088
|
*/
|
|
1089
1089
|
interface BroadcastChannel extends EventTarget {
|
|
1090
1090
|
/**
|
|
1091
|
-
* The **`name`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name.
|
|
1091
|
+
* The **`name`** read-only property of the BroadcastChannel interface returns a string, which uniquely identifies the given channel with its name. This name is passed to the BroadcastChannel() constructor at creation time and is therefore read-only.
|
|
1092
1092
|
*
|
|
1093
1093
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
|
|
1094
1094
|
*/
|
|
@@ -1098,13 +1098,13 @@ interface BroadcastChannel extends EventTarget {
|
|
|
1098
1098
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
|
|
1099
1099
|
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
1100
1100
|
/**
|
|
1101
|
-
* The **`close()`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected.
|
|
1101
|
+
* The **`close()`** method of the BroadcastChannel interface terminates the connection to the underlying channel, allowing the object to be garbage collected. This is a necessary step to perform as there is no other way for a browser to know that this channel is not needed anymore.
|
|
1102
1102
|
*
|
|
1103
1103
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
|
|
1104
1104
|
*/
|
|
1105
1105
|
close(): void;
|
|
1106
1106
|
/**
|
|
1107
|
-
* The **`postMessage()`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin.
|
|
1107
|
+
* The **`postMessage()`** method of the BroadcastChannel interface sends a message, which can be of any kind of Object, to each listener in any browsing context with the same origin. The message is transmitted as a message event targeted at each BroadcastChannel bound to the channel.
|
|
1108
1108
|
*
|
|
1109
1109
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
|
|
1110
1110
|
*/
|
|
@@ -1161,7 +1161,7 @@ declare var CSSImageValue: {
|
|
|
1161
1161
|
*/
|
|
1162
1162
|
interface CSSKeywordValue extends CSSStyleValue {
|
|
1163
1163
|
/**
|
|
1164
|
-
* The **`value`** property of the CSSKeywordValue interface returns or sets the value of the
|
|
1164
|
+
* The **`value`** property of the CSSKeywordValue interface returns or sets the value of the CSSKeywordValue.
|
|
1165
1165
|
*
|
|
1166
1166
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value)
|
|
1167
1167
|
*/
|
|
@@ -1185,13 +1185,13 @@ declare var CSSMathClamp: {
|
|
|
1185
1185
|
};
|
|
1186
1186
|
|
|
1187
1187
|
/**
|
|
1188
|
-
* The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc used as
|
|
1188
|
+
* The **`CSSMathInvert`** interface of the CSS Typed Object Model API represents a CSS calc() used as calc(1 / <value>). It inherits properties and methods from its parent CSSNumericValue.
|
|
1189
1189
|
*
|
|
1190
1190
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert)
|
|
1191
1191
|
*/
|
|
1192
1192
|
interface CSSMathInvert extends CSSMathValue {
|
|
1193
1193
|
/**
|
|
1194
|
-
* The CSSMathInvert.value read-only property of the CSSMathInvert interface returns a CSSNumericValue object.
|
|
1194
|
+
* The **`CSSMathInvert.value`** read-only property of the CSSMathInvert interface returns a CSSNumericValue object.
|
|
1195
1195
|
*
|
|
1196
1196
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value)
|
|
1197
1197
|
*/
|
|
@@ -1204,13 +1204,13 @@ declare var CSSMathInvert: {
|
|
|
1204
1204
|
};
|
|
1205
1205
|
|
|
1206
1206
|
/**
|
|
1207
|
-
* The **`CSSMathMax`** interface of the CSS Typed Object Model API represents the CSS max function.
|
|
1207
|
+
* The **`CSSMathMax`** interface of the CSS Typed Object Model API represents the CSS max() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
1208
1208
|
*
|
|
1209
1209
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax)
|
|
1210
1210
|
*/
|
|
1211
1211
|
interface CSSMathMax extends CSSMathValue {
|
|
1212
1212
|
/**
|
|
1213
|
-
* The CSSMathMax.values read-only property of the CSSMathMax interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
|
|
1213
|
+
* The **`CSSMathMax.values`** read-only property of the CSSMathMax interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
|
|
1214
1214
|
*
|
|
1215
1215
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values)
|
|
1216
1216
|
*/
|
|
@@ -1223,13 +1223,13 @@ declare var CSSMathMax: {
|
|
|
1223
1223
|
};
|
|
1224
1224
|
|
|
1225
1225
|
/**
|
|
1226
|
-
* The **`CSSMathMin`** interface of the CSS Typed Object Model API represents the CSS min function.
|
|
1226
|
+
* The **`CSSMathMin`** interface of the CSS Typed Object Model API represents the CSS min() function. It inherits properties and methods from its parent CSSNumericValue.
|
|
1227
1227
|
*
|
|
1228
1228
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin)
|
|
1229
1229
|
*/
|
|
1230
1230
|
interface CSSMathMin extends CSSMathValue {
|
|
1231
1231
|
/**
|
|
1232
|
-
* The CSSMathMin.values read-only property of the CSSMathMin interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
|
|
1232
|
+
* The **`CSSMathMin.values`** read-only property of the CSSMathMin interface returns a CSSNumericArray object which contains one or more CSSNumericValue objects.
|
|
1233
1233
|
*
|
|
1234
1234
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values)
|
|
1235
1235
|
*/
|
|
@@ -1242,13 +1242,13 @@ declare var CSSMathMin: {
|
|
|
1242
1242
|
};
|
|
1243
1243
|
|
|
1244
1244
|
/**
|
|
1245
|
-
* The **`CSSMathNegate`** interface of the CSS Typed Object Model API negates the value passed into it.
|
|
1245
|
+
* The **`CSSMathNegate`** interface of the CSS Typed Object Model API negates the value passed into it. It inherits properties and methods from its parent CSSNumericValue.
|
|
1246
1246
|
*
|
|
1247
1247
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate)
|
|
1248
1248
|
*/
|
|
1249
1249
|
interface CSSMathNegate extends CSSMathValue {
|
|
1250
1250
|
/**
|
|
1251
|
-
* The CSSMathNegate.value read-only property of the CSSMathNegate interface returns a CSSNumericValue object.
|
|
1251
|
+
* The **`CSSMathNegate.value`** read-only property of the CSSMathNegate interface returns a CSSNumericValue object.
|
|
1252
1252
|
*
|
|
1253
1253
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value)
|
|
1254
1254
|
*/
|
|
@@ -1261,7 +1261,7 @@ declare var CSSMathNegate: {
|
|
|
1261
1261
|
};
|
|
1262
1262
|
|
|
1263
1263
|
/**
|
|
1264
|
-
* The **`CSSMathProduct`** interface of the CSS Typed Object Model API represents the result obtained by calling
|
|
1264
|
+
* The **`CSSMathProduct`** interface of the CSS Typed Object Model API represents the result obtained by calling add(), sub(), or toSum() on CSSNumericValue. It inherits properties and methods from its parent CSSNumericValue.
|
|
1265
1265
|
*
|
|
1266
1266
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct)
|
|
1267
1267
|
*/
|
|
@@ -1280,7 +1280,7 @@ declare var CSSMathProduct: {
|
|
|
1280
1280
|
};
|
|
1281
1281
|
|
|
1282
1282
|
/**
|
|
1283
|
-
* The **`CSSMathSum`** interface of the CSS Typed Object Model API represents the result obtained by calling
|
|
1283
|
+
* The **`CSSMathSum`** interface of the CSS Typed Object Model API represents the result obtained by calling add(), sub(), or toSum() on CSSNumericValue.
|
|
1284
1284
|
*
|
|
1285
1285
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum)
|
|
1286
1286
|
*/
|
|
@@ -1305,7 +1305,7 @@ declare var CSSMathSum: {
|
|
|
1305
1305
|
*/
|
|
1306
1306
|
interface CSSMathValue extends CSSNumericValue {
|
|
1307
1307
|
/**
|
|
1308
|
-
* The **`CSSMathValue.operator`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents.
|
|
1308
|
+
* The **`CSSMathValue.operator`** read-only property of the CSSMathValue interface indicates the operator that the current subtype represents. For example, if the current CSSMathValue subtype is CSSMathSum, this property will return the string "sum".
|
|
1309
1309
|
*
|
|
1310
1310
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator)
|
|
1311
1311
|
*/
|
|
@@ -1318,7 +1318,7 @@ declare var CSSMathValue: {
|
|
|
1318
1318
|
};
|
|
1319
1319
|
|
|
1320
1320
|
/**
|
|
1321
|
-
* The **`CSSMatrixComponent`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.
|
|
1321
|
+
* The **`CSSMatrixComponent`** interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
|
|
1322
1322
|
*
|
|
1323
1323
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent)
|
|
1324
1324
|
*/
|
|
@@ -1364,43 +1364,43 @@ declare var CSSNumericArray: {
|
|
|
1364
1364
|
*/
|
|
1365
1365
|
interface CSSNumericValue extends CSSStyleValue {
|
|
1366
1366
|
/**
|
|
1367
|
-
* The **`add()`** method of the CSSNumericValue interface adds a supplied number to the
|
|
1367
|
+
* The **`add()`** method of the CSSNumericValue interface adds a supplied number to the CSSNumericValue.
|
|
1368
1368
|
*
|
|
1369
1369
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add)
|
|
1370
1370
|
*/
|
|
1371
1371
|
add(...values: CSSNumberish[]): CSSNumericValue;
|
|
1372
1372
|
/**
|
|
1373
|
-
* The **`div()`** method of the CSSNumericValue interface divides the
|
|
1373
|
+
* The **`div()`** method of the CSSNumericValue interface divides the CSSNumericValue by the supplied value.
|
|
1374
1374
|
*
|
|
1375
1375
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div)
|
|
1376
1376
|
*/
|
|
1377
1377
|
div(...values: CSSNumberish[]): CSSNumericValue;
|
|
1378
1378
|
/**
|
|
1379
|
-
* The **`equals()`** method of the CSSNumericValue interface returns a boolean indicating whether the passed value are strictly equal.
|
|
1379
|
+
* The **`equals()`** method of the CSSNumericValue interface returns a boolean indicating whether the passed value are strictly equal. To return a value of true, all passed values must be of the same type and value and must be in the same order. This allows structural equality to be tested quickly.
|
|
1380
1380
|
*
|
|
1381
1381
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals)
|
|
1382
1382
|
*/
|
|
1383
1383
|
equals(...value: CSSNumberish[]): boolean;
|
|
1384
1384
|
/**
|
|
1385
|
-
* The **`max()`** method of the CSSNumericValue interface returns the highest value from among the values passed.
|
|
1385
|
+
* The **`max()`** method of the CSSNumericValue interface returns the highest value from among the values passed. The passed values must be of the same type.
|
|
1386
1386
|
*
|
|
1387
1387
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max)
|
|
1388
1388
|
*/
|
|
1389
1389
|
max(...values: CSSNumberish[]): CSSNumericValue;
|
|
1390
1390
|
/**
|
|
1391
|
-
* The **`min()`** method of the CSSNumericValue interface returns the lowest value from among those values passed.
|
|
1391
|
+
* The **`min()`** method of the CSSNumericValue interface returns the lowest value from among those values passed. The passed values must be of the same type.
|
|
1392
1392
|
*
|
|
1393
1393
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min)
|
|
1394
1394
|
*/
|
|
1395
1395
|
min(...values: CSSNumberish[]): CSSNumericValue;
|
|
1396
1396
|
/**
|
|
1397
|
-
* The **`mul()`** method of the CSSNumericValue interface multiplies the
|
|
1397
|
+
* The **`mul()`** method of the CSSNumericValue interface multiplies the CSSNumericValue by the supplied value.
|
|
1398
1398
|
*
|
|
1399
1399
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul)
|
|
1400
1400
|
*/
|
|
1401
1401
|
mul(...values: CSSNumberish[]): CSSNumericValue;
|
|
1402
1402
|
/**
|
|
1403
|
-
* The **`sub()`** method of the CSSNumericValue interface subtracts a supplied number from the
|
|
1403
|
+
* The **`sub()`** method of the CSSNumericValue interface subtracts a supplied number from the CSSNumericValue.
|
|
1404
1404
|
*
|
|
1405
1405
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub)
|
|
1406
1406
|
*/
|
|
@@ -1418,7 +1418,7 @@ interface CSSNumericValue extends CSSStyleValue {
|
|
|
1418
1418
|
*/
|
|
1419
1419
|
toSum(...units: string[]): CSSMathSum;
|
|
1420
1420
|
/**
|
|
1421
|
-
* The **`type()`** method of the CSSNumericValue interface returns the type of
|
|
1421
|
+
* The **`type()`** method of the CSSNumericValue interface returns the type of CSSNumericValue, one of angle, flex, frequency, length, resolution, percent, percentHint, or time.
|
|
1422
1422
|
*
|
|
1423
1423
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type)
|
|
1424
1424
|
*/
|
|
@@ -1431,7 +1431,7 @@ declare var CSSNumericValue: {
|
|
|
1431
1431
|
};
|
|
1432
1432
|
|
|
1433
1433
|
/**
|
|
1434
|
-
* The **`CSSPerspective`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.
|
|
1434
|
+
* The **`CSSPerspective`** interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
|
|
1435
1435
|
*
|
|
1436
1436
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective)
|
|
1437
1437
|
*/
|
|
@@ -1450,13 +1450,13 @@ declare var CSSPerspective: {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
|
|
1452
1452
|
/**
|
|
1453
|
-
* The **`CSSRotate`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.
|
|
1453
|
+
* The **`CSSRotate`** interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
|
|
1454
1454
|
*
|
|
1455
1455
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate)
|
|
1456
1456
|
*/
|
|
1457
1457
|
interface CSSRotate extends CSSTransformComponent {
|
|
1458
1458
|
/**
|
|
1459
|
-
* The **`angle`** property of the CSSRotate interface gets and sets the angle of rotation.
|
|
1459
|
+
* The **`angle`** property of the CSSRotate interface gets and sets the angle of rotation. A positive angle denotes a clockwise rotation, a negative angle a counter-clockwise one.
|
|
1460
1460
|
*
|
|
1461
1461
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle)
|
|
1462
1462
|
*/
|
|
@@ -1474,7 +1474,7 @@ interface CSSRotate extends CSSTransformComponent {
|
|
|
1474
1474
|
*/
|
|
1475
1475
|
y: CSSNumberish;
|
|
1476
1476
|
/**
|
|
1477
|
-
* The **`z`** property of the CSSRotate interface representing the z-component of the translating vector.
|
|
1477
|
+
* The **`z`** property of the CSSRotate interface representing the z-component of the translating vector. A positive value moves the element towards the viewer, and a negative value farther away.
|
|
1478
1478
|
*
|
|
1479
1479
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z)
|
|
1480
1480
|
*/
|
|
@@ -1488,7 +1488,7 @@ declare var CSSRotate: {
|
|
|
1488
1488
|
};
|
|
1489
1489
|
|
|
1490
1490
|
/**
|
|
1491
|
-
* The **`CSSScale`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.
|
|
1491
|
+
* The **`CSSScale`** interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
|
|
1492
1492
|
*
|
|
1493
1493
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale)
|
|
1494
1494
|
*/
|
|
@@ -1506,7 +1506,7 @@ interface CSSScale extends CSSTransformComponent {
|
|
|
1506
1506
|
*/
|
|
1507
1507
|
y: CSSNumberish;
|
|
1508
1508
|
/**
|
|
1509
|
-
* The **`z`** property of the CSSScale interface representing the z-component of the translating vector.
|
|
1509
|
+
* The **`z`** property of the CSSScale interface representing the z-component of the translating vector. A positive value moves the element towards the viewer, and a negative value farther away.
|
|
1510
1510
|
*
|
|
1511
1511
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z)
|
|
1512
1512
|
*/
|
|
@@ -1519,7 +1519,7 @@ declare var CSSScale: {
|
|
|
1519
1519
|
};
|
|
1520
1520
|
|
|
1521
1521
|
/**
|
|
1522
|
-
* The **`CSSSkew`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
|
|
1522
|
+
* The **`CSSSkew`** interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. It represents the skew() value of the individual transform property in CSS.
|
|
1523
1523
|
*
|
|
1524
1524
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew)
|
|
1525
1525
|
*/
|
|
@@ -1544,7 +1544,7 @@ declare var CSSSkew: {
|
|
|
1544
1544
|
};
|
|
1545
1545
|
|
|
1546
1546
|
/**
|
|
1547
|
-
* The **`CSSSkewX`** interface of the CSS Typed Object Model API represents the
|
|
1547
|
+
* The **`CSSSkewX`** interface of the CSS Typed Object Model API represents the skewX() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
|
|
1548
1548
|
*
|
|
1549
1549
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX)
|
|
1550
1550
|
*/
|
|
@@ -1563,7 +1563,7 @@ declare var CSSSkewX: {
|
|
|
1563
1563
|
};
|
|
1564
1564
|
|
|
1565
1565
|
/**
|
|
1566
|
-
* The **`CSSSkewY`** interface of the CSS Typed Object Model API represents the
|
|
1566
|
+
* The **`CSSSkewY`** interface of the CSS Typed Object Model API represents the skewY() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
|
|
1567
1567
|
*
|
|
1568
1568
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY)
|
|
1569
1569
|
*/
|
|
@@ -1582,7 +1582,7 @@ declare var CSSSkewY: {
|
|
|
1582
1582
|
};
|
|
1583
1583
|
|
|
1584
1584
|
/**
|
|
1585
|
-
* The **`CSSStyleValue`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.
|
|
1585
|
+
* The **`CSSStyleValue`** interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API. An instance of this class may be used anywhere a string is expected.
|
|
1586
1586
|
*
|
|
1587
1587
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue)
|
|
1588
1588
|
*/
|
|
@@ -1622,7 +1622,7 @@ declare var CSSTransformComponent: {
|
|
|
1622
1622
|
};
|
|
1623
1623
|
|
|
1624
1624
|
/**
|
|
1625
|
-
* The **`CSSTransformValue`** interface of the CSS Typed Object Model API represents
|
|
1625
|
+
* The **`CSSTransformValue`** interface of the CSS Typed Object Model API represents transform-list values as used by the CSS transform property.
|
|
1626
1626
|
*
|
|
1627
1627
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue)
|
|
1628
1628
|
*/
|
|
@@ -1655,7 +1655,7 @@ declare var CSSTransformValue: {
|
|
|
1655
1655
|
};
|
|
1656
1656
|
|
|
1657
1657
|
/**
|
|
1658
|
-
* The **`CSSTranslate`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.
|
|
1658
|
+
* The **`CSSTranslate`** interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
|
|
1659
1659
|
*
|
|
1660
1660
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate)
|
|
1661
1661
|
*/
|
|
@@ -1673,7 +1673,7 @@ interface CSSTranslate extends CSSTransformComponent {
|
|
|
1673
1673
|
*/
|
|
1674
1674
|
y: CSSNumericValue;
|
|
1675
1675
|
/**
|
|
1676
|
-
* The **`z`** property of the CSSTranslate interface representing the z-component of the translating vector.
|
|
1676
|
+
* The **`z`** property of the CSSTranslate interface representing the z-component of the translating vector. A positive value moves the element towards the viewer, and a negative value farther away.
|
|
1677
1677
|
*
|
|
1678
1678
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z)
|
|
1679
1679
|
*/
|
|
@@ -1686,7 +1686,7 @@ declare var CSSTranslate: {
|
|
|
1686
1686
|
};
|
|
1687
1687
|
|
|
1688
1688
|
/**
|
|
1689
|
-
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type.
|
|
1689
|
+
* The **`CSSUnitValue`** interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue.
|
|
1690
1690
|
*
|
|
1691
1691
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue)
|
|
1692
1692
|
*/
|
|
@@ -1711,7 +1711,7 @@ declare var CSSUnitValue: {
|
|
|
1711
1711
|
};
|
|
1712
1712
|
|
|
1713
1713
|
/**
|
|
1714
|
-
* The **`CSSUnparsedValue`** interface of the CSS Typed Object Model API represents property values that reference custom properties.
|
|
1714
|
+
* The **`CSSUnparsedValue`** interface of the CSS Typed Object Model API represents property values that reference custom properties. It consists of a list of string fragments and variable references.
|
|
1715
1715
|
*
|
|
1716
1716
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue)
|
|
1717
1717
|
*/
|
|
@@ -1732,7 +1732,7 @@ declare var CSSUnparsedValue: {
|
|
|
1732
1732
|
};
|
|
1733
1733
|
|
|
1734
1734
|
/**
|
|
1735
|
-
* The **`CSSVariableReferenceValue`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.
|
|
1735
|
+
* The **`CSSVariableReferenceValue`** interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. This object functionality is sometimes called a "CSS variable" and serves the same purpose as the var() function. The custom name must begin with two dashes.
|
|
1736
1736
|
*
|
|
1737
1737
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue)
|
|
1738
1738
|
*/
|
|
@@ -1757,7 +1757,7 @@ declare var CSSVariableReferenceValue: {
|
|
|
1757
1757
|
};
|
|
1758
1758
|
|
|
1759
1759
|
/**
|
|
1760
|
-
* The **`Cache`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory.
|
|
1760
|
+
* The **`Cache`** interface provides a persistent storage mechanism for Request / Response object pairs that are cached in long lived memory. How long a Cache object lives is browser dependent, but a single origin's scripts can typically rely on the presence of a previously populated Cache object. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
|
|
1761
1761
|
* Available only in secure contexts.
|
|
1762
1762
|
*
|
|
1763
1763
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
|
|
@@ -1770,13 +1770,13 @@ interface Cache {
|
|
|
1770
1770
|
*/
|
|
1771
1771
|
add(request: RequestInfo | URL): Promise<void>;
|
|
1772
1772
|
/**
|
|
1773
|
-
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
|
1773
|
+
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. The request objects created during retrieval become keys to the stored response operations.
|
|
1774
1774
|
*
|
|
1775
1775
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
1776
1776
|
*/
|
|
1777
1777
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
1778
1778
|
/**
|
|
1779
|
-
* The **`delete()`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to
|
|
1779
|
+
* The **`delete()`** method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true. If no Cache entry is found, it resolves to false.
|
|
1780
1780
|
*
|
|
1781
1781
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete)
|
|
1782
1782
|
*/
|
|
@@ -1788,7 +1788,7 @@ interface Cache {
|
|
|
1788
1788
|
*/
|
|
1789
1789
|
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
1790
1790
|
/**
|
|
1791
|
-
* The **`match()`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object.
|
|
1791
|
+
* The **`match()`** method of the Cache interface returns a Promise that resolves to the Response associated with the first matching request in the Cache object. If no match is found, the Promise resolves to undefined.
|
|
1792
1792
|
*
|
|
1793
1793
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match)
|
|
1794
1794
|
*/
|
|
@@ -1820,31 +1820,31 @@ declare var Cache: {
|
|
|
1820
1820
|
*/
|
|
1821
1821
|
interface CacheStorage {
|
|
1822
1822
|
/**
|
|
1823
|
-
* The **`delete()`** method of the CacheStorage interface finds the Cache object matching the
|
|
1823
|
+
* The **`delete()`** method of the CacheStorage interface finds the Cache object matching the cacheName, and if found, deletes the Cache object and returns a Promise that resolves to true. If no Cache object is found, it resolves to false.
|
|
1824
1824
|
*
|
|
1825
1825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete)
|
|
1826
1826
|
*/
|
|
1827
1827
|
delete(cacheName: string): Promise<boolean>;
|
|
1828
1828
|
/**
|
|
1829
|
-
* The **`has()`** method of the CacheStorage interface returns a Promise that resolves to
|
|
1829
|
+
* The **`has()`** method of the CacheStorage interface returns a Promise that resolves to true if a Cache object matches the cacheName.
|
|
1830
1830
|
*
|
|
1831
1831
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has)
|
|
1832
1832
|
*/
|
|
1833
1833
|
has(cacheName: string): Promise<boolean>;
|
|
1834
1834
|
/**
|
|
1835
|
-
* The **`keys()`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created.
|
|
1835
|
+
* The **`keys()`** method of the CacheStorage interface returns a Promise that will resolve with an array containing strings corresponding to all of the named Cache objects tracked by the CacheStorage object in the order they were created. Use this method to iterate over a list of all Cache objects.
|
|
1836
1836
|
*
|
|
1837
1837
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys)
|
|
1838
1838
|
*/
|
|
1839
1839
|
keys(): Promise<string[]>;
|
|
1840
1840
|
/**
|
|
1841
|
-
* The **`match()`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response.
|
|
1841
|
+
* The **`match()`** method of the CacheStorage interface checks if a given Request or URL string is a key for a stored Response. This method returns a Promise for a Response, or a Promise which resolves to undefined if no match is found.
|
|
1842
1842
|
*
|
|
1843
1843
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match)
|
|
1844
1844
|
*/
|
|
1845
1845
|
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
1846
1846
|
/**
|
|
1847
|
-
* The **`open()`** method of the CacheStorage interface returns a Promise that resolves to the Cache object matching the
|
|
1847
|
+
* The **`open()`** method of the CacheStorage interface returns a Promise that resolves to the Cache object matching the cacheName.
|
|
1848
1848
|
*
|
|
1849
1849
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open)
|
|
1850
1850
|
*/
|
|
@@ -1911,13 +1911,13 @@ interface CanvasFilters {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
|
|
1913
1913
|
/**
|
|
1914
|
-
* The **`CanvasGradient`** interface represents an opaque object describing a gradient.
|
|
1914
|
+
* The **`CanvasGradient`** interface represents an opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient(), CanvasRenderingContext2D.createConicGradient() or CanvasRenderingContext2D.createRadialGradient().
|
|
1915
1915
|
*
|
|
1916
1916
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
|
|
1917
1917
|
*/
|
|
1918
1918
|
interface CanvasGradient {
|
|
1919
1919
|
/**
|
|
1920
|
-
* The **`CanvasGradient.addColorStop()`** method adds a new color stop, defined by an
|
|
1920
|
+
* The **`CanvasGradient.addColorStop()`** method adds a new color stop, defined by an offset and a color, to a given canvas gradient.
|
|
1921
1921
|
*
|
|
1922
1922
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
|
|
1923
1923
|
*/
|
|
@@ -2088,13 +2088,13 @@ interface CanvasTransform {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
|
|
2090
2090
|
/**
|
|
2091
|
-
* The
|
|
2091
|
+
* The **`Client`** interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get().
|
|
2092
2092
|
*
|
|
2093
2093
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
|
|
2094
2094
|
*/
|
|
2095
2095
|
interface Client {
|
|
2096
2096
|
/**
|
|
2097
|
-
* The **`frameType`** read-only property of the Client interface indicates the type of browsing context of the current Client.
|
|
2097
|
+
* The **`frameType`** read-only property of the Client interface indicates the type of browsing context of the current Client. This value can be one of "auxiliary", "top-level", "nested", or "none".
|
|
2098
2098
|
*
|
|
2099
2099
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType)
|
|
2100
2100
|
*/
|
|
@@ -2118,7 +2118,7 @@ interface Client {
|
|
|
2118
2118
|
*/
|
|
2119
2119
|
readonly url: string;
|
|
2120
2120
|
/**
|
|
2121
|
-
* The **`postMessage()`** method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker).
|
|
2121
|
+
* The **`postMessage()`** method of the Client interface allows a service worker to send a message to a client (a Window, Worker, or SharedWorker). The message is received in the message event on navigator.serviceWorker.
|
|
2122
2122
|
*
|
|
2123
2123
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage)
|
|
2124
2124
|
*/
|
|
@@ -2132,31 +2132,31 @@ declare var Client: {
|
|
|
2132
2132
|
};
|
|
2133
2133
|
|
|
2134
2134
|
/**
|
|
2135
|
-
* The
|
|
2135
|
+
* The **`Clients`** interface provides access to Client objects. Access it via self.clients within a service worker.
|
|
2136
2136
|
*
|
|
2137
2137
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
|
|
2138
2138
|
*/
|
|
2139
2139
|
interface Clients {
|
|
2140
2140
|
/**
|
|
2141
|
-
* The **`claim()`** method of the Clients interface allows an active service worker to set itself as the
|
|
2141
|
+
* The **`claim()`** method of the Clients interface allows an active service worker to set itself as the controller for all clients within its scope. This triggers a controllerchange event on navigator.serviceWorker in any clients that become controlled by this service worker.
|
|
2142
2142
|
*
|
|
2143
2143
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim)
|
|
2144
2144
|
*/
|
|
2145
2145
|
claim(): Promise<void>;
|
|
2146
2146
|
/**
|
|
2147
|
-
* The **`get()`** method of the Clients interface gets a service worker client matching a given
|
|
2147
|
+
* The **`get()`** method of the Clients interface gets a service worker client matching a given id and returns it in a Promise.
|
|
2148
2148
|
*
|
|
2149
2149
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get)
|
|
2150
2150
|
*/
|
|
2151
2151
|
get(id: string): Promise<Client | undefined>;
|
|
2152
2152
|
/**
|
|
2153
|
-
* The **`matchAll()`** method of the Clients interface returns a Promise for a list of service worker Client objects.
|
|
2153
|
+
* The **`matchAll()`** method of the Clients interface returns a Promise for a list of service worker Client objects. Include the options parameter to return all service worker clients whose origin is the same as the associated service worker's origin. If options are not included, the method returns only the service worker clients controlled by the service worker.
|
|
2154
2154
|
*
|
|
2155
2155
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll)
|
|
2156
2156
|
*/
|
|
2157
2157
|
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
|
|
2158
2158
|
/**
|
|
2159
|
-
* The **`openWindow()`** method of the Clients interface creates a new top level browsing context and loads a given URL.
|
|
2159
|
+
* The **`openWindow()`** method of the Clients interface creates a new top level browsing context and loads a given URL. If the calling script doesn't have permission to show popups, openWindow() will throw an InvalidAccessError.
|
|
2160
2160
|
*
|
|
2161
2161
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow)
|
|
2162
2162
|
*/
|
|
@@ -2169,7 +2169,7 @@ declare var Clients: {
|
|
|
2169
2169
|
};
|
|
2170
2170
|
|
|
2171
2171
|
/**
|
|
2172
|
-
* A
|
|
2172
|
+
* A **`CloseEvent`** is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
|
|
2173
2173
|
*
|
|
2174
2174
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
|
|
2175
2175
|
*/
|
|
@@ -2187,7 +2187,7 @@ interface CloseEvent extends Event {
|
|
|
2187
2187
|
*/
|
|
2188
2188
|
readonly reason: string;
|
|
2189
2189
|
/**
|
|
2190
|
-
* The **`wasClean`** read-only property of the CloseEvent interface returns
|
|
2190
|
+
* The **`wasClean`** read-only property of the CloseEvent interface returns true if the connection closed cleanly.
|
|
2191
2191
|
*
|
|
2192
2192
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
|
|
2193
2193
|
*/
|
|
@@ -2222,28 +2222,28 @@ declare var CompressionStream: {
|
|
|
2222
2222
|
*/
|
|
2223
2223
|
interface CookieStore extends EventTarget {
|
|
2224
2224
|
/**
|
|
2225
|
-
* The **`delete()`** method of the CookieStore interface deletes a cookie that matches the given
|
|
2225
|
+
* The **`delete()`** method of the CookieStore interface deletes a cookie that matches the given name or options object. The method expires the cookie by changing its date to one in the past.
|
|
2226
2226
|
*
|
|
2227
2227
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/delete)
|
|
2228
2228
|
*/
|
|
2229
2229
|
delete(name: string): Promise<void>;
|
|
2230
2230
|
delete(options: CookieStoreDeleteOptions): Promise<void>;
|
|
2231
2231
|
/**
|
|
2232
|
-
* The **`get()`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given
|
|
2232
|
+
* The **`get()`** method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given name or options object. The method will return the first cookie that matches.
|
|
2233
2233
|
*
|
|
2234
2234
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/get)
|
|
2235
2235
|
*/
|
|
2236
2236
|
get(name: string): Promise<CookieListItem | null>;
|
|
2237
2237
|
get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;
|
|
2238
2238
|
/**
|
|
2239
|
-
* The **`getAll()`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the
|
|
2239
|
+
* The **`getAll()`** method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the name or options passed to it. Passing no parameters will return all cookies for the current context.
|
|
2240
2240
|
*
|
|
2241
2241
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/getAll)
|
|
2242
2242
|
*/
|
|
2243
2243
|
getAll(name: string): Promise<CookieList>;
|
|
2244
2244
|
getAll(options?: CookieStoreGetOptions): Promise<CookieList>;
|
|
2245
2245
|
/**
|
|
2246
|
-
* The **`set()`** method of the CookieStore interface sets a cookie with the given
|
|
2246
|
+
* The **`set()`** method of the CookieStore interface sets a cookie with the given name and value or options object.
|
|
2247
2247
|
*
|
|
2248
2248
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStore/set)
|
|
2249
2249
|
*/
|
|
@@ -2257,7 +2257,7 @@ declare var CookieStore: {
|
|
|
2257
2257
|
};
|
|
2258
2258
|
|
|
2259
2259
|
/**
|
|
2260
|
-
* The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events.
|
|
2260
|
+
* The **`CookieStoreManager`** interface of the Cookie Store API allows service workers to subscribe to cookie change events. Call subscribe() on a particular service worker registration to receive change events.
|
|
2261
2261
|
* Available only in secure contexts.
|
|
2262
2262
|
*
|
|
2263
2263
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager)
|
|
@@ -2310,7 +2310,7 @@ declare var CountQueuingStrategy: {
|
|
|
2310
2310
|
};
|
|
2311
2311
|
|
|
2312
2312
|
/**
|
|
2313
|
-
* The **`Crypto`** interface represents basic cryptography features available in the current context.
|
|
2313
|
+
* The **`Crypto`** interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
|
|
2314
2314
|
*
|
|
2315
2315
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
|
|
2316
2316
|
*/
|
|
@@ -2323,11 +2323,11 @@ interface Crypto {
|
|
|
2323
2323
|
*/
|
|
2324
2324
|
readonly subtle: SubtleCrypto;
|
|
2325
2325
|
/**
|
|
2326
|
-
* The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values.
|
|
2326
|
+
* The **`Crypto.getRandomValues()`** method lets you get cryptographically strong random values. The array given as the parameter is filled with random numbers (random in its cryptographic meaning).
|
|
2327
2327
|
*
|
|
2328
2328
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues)
|
|
2329
2329
|
*/
|
|
2330
|
-
getRandomValues<T extends
|
|
2330
|
+
getRandomValues<T extends Exclude<BufferSource, ArrayBuffer>>(array: T): T;
|
|
2331
2331
|
/**
|
|
2332
2332
|
* The **`randomUUID()`** method of the Crypto interface is used to generate a v4 UUID using a cryptographically secure random number generator.
|
|
2333
2333
|
* Available only in secure contexts.
|
|
@@ -2343,7 +2343,7 @@ declare var Crypto: {
|
|
|
2343
2343
|
};
|
|
2344
2344
|
|
|
2345
2345
|
/**
|
|
2346
|
-
* The **`CryptoKey`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods
|
|
2346
|
+
* The **`CryptoKey`** interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods generateKey(), deriveKey(), importKey(), or unwrapKey().
|
|
2347
2347
|
* Available only in secure contexts.
|
|
2348
2348
|
*
|
|
2349
2349
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
|
|
@@ -2356,13 +2356,13 @@ interface CryptoKey {
|
|
|
2356
2356
|
*/
|
|
2357
2357
|
readonly algorithm: KeyAlgorithm;
|
|
2358
2358
|
/**
|
|
2359
|
-
* The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using
|
|
2359
|
+
* The read-only **`extractable`** property of the CryptoKey interface indicates whether or not the key may be extracted using SubtleCrypto.exportKey() or SubtleCrypto.wrapKey().
|
|
2360
2360
|
*
|
|
2361
2361
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable)
|
|
2362
2362
|
*/
|
|
2363
2363
|
readonly extractable: boolean;
|
|
2364
2364
|
/**
|
|
2365
|
-
* The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object.
|
|
2365
|
+
* The read-only **`type`** property of the CryptoKey interface indicates which kind of key is represented by the object. It can have the following values:
|
|
2366
2366
|
*
|
|
2367
2367
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type)
|
|
2368
2368
|
*/
|
|
@@ -2393,7 +2393,7 @@ interface CustomEvent<T = any> extends Event {
|
|
|
2393
2393
|
*/
|
|
2394
2394
|
readonly detail: T;
|
|
2395
2395
|
/**
|
|
2396
|
-
* The **`CustomEvent.initCustomEvent()`** method initializes a CustomEvent object.
|
|
2396
|
+
* The **`CustomEvent.initCustomEvent()`** method initializes a CustomEvent object. If the event has already been dispatched, this method does nothing.
|
|
2397
2397
|
* @deprecated
|
|
2398
2398
|
*
|
|
2399
2399
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
|
|
@@ -2407,13 +2407,13 @@ declare var CustomEvent: {
|
|
|
2407
2407
|
};
|
|
2408
2408
|
|
|
2409
2409
|
/**
|
|
2410
|
-
* The **`DOMException`** interface represents an abnormal event (called an
|
|
2410
|
+
* The **`DOMException`** interface represents an abnormal event (called an exception) that occurs as a result of calling a method or accessing a property of a web API. This is how error conditions are described in web APIs.
|
|
2411
2411
|
*
|
|
2412
2412
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
|
|
2413
2413
|
*/
|
|
2414
2414
|
interface DOMException extends Error {
|
|
2415
2415
|
/**
|
|
2416
|
-
* The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or
|
|
2416
|
+
* The **`code`** read-only property of the DOMException interface returns one of the legacy error code constants, or 0 if none match.
|
|
2417
2417
|
* @deprecated
|
|
2418
2418
|
*
|
|
2419
2419
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
|
|
@@ -2489,7 +2489,7 @@ declare var DOMException: {
|
|
|
2489
2489
|
};
|
|
2490
2490
|
|
|
2491
2491
|
/**
|
|
2492
|
-
* The **`DOMMatrix`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation.
|
|
2492
|
+
* The **`DOMMatrix`** interface represents 4×4 matrices, suitable for 2D and 3D operations including rotation and translation. It is a mutable version of the DOMMatrixReadOnly interface. The interface is available inside web workers.
|
|
2493
2493
|
*
|
|
2494
2494
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix)
|
|
2495
2495
|
*/
|
|
@@ -2539,67 +2539,67 @@ interface DOMMatrix extends DOMMatrixReadOnly {
|
|
|
2539
2539
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix#instance_properties) */
|
|
2540
2540
|
m44: number;
|
|
2541
2541
|
/**
|
|
2542
|
-
* The **`invertSelf()`** method of the DOMMatrix interface inverts the original matrix.
|
|
2542
|
+
* The **`invertSelf()`** method of the DOMMatrix interface inverts the original matrix. If the matrix cannot be inverted, the new matrix's components are all set to NaN and its is2D property is set to false.
|
|
2543
2543
|
*
|
|
2544
2544
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/invertSelf)
|
|
2545
2545
|
*/
|
|
2546
2546
|
invertSelf(): DOMMatrix;
|
|
2547
2547
|
/**
|
|
2548
|
-
* The **`multiplySelf()`** method of the DOMMatrix interface multiplies a matrix by the
|
|
2548
|
+
* The **`multiplySelf()`** method of the DOMMatrix interface multiplies a matrix by the otherMatrix parameter, computing the dot product of the original matrix and the specified matrix: A⋅B. If no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is 0 except the bottom-right corner and the element immediately above and to its left: m33 and m34. These have the default value of 1.
|
|
2549
2549
|
*
|
|
2550
2550
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/multiplySelf)
|
|
2551
2551
|
*/
|
|
2552
2552
|
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
2553
2553
|
/**
|
|
2554
|
-
* The **`preMultiplySelf()`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified
|
|
2554
|
+
* The **`preMultiplySelf()`** method of the DOMMatrix interface modifies the matrix by pre-multiplying it with the specified DOMMatrix. This is equivalent to the dot product B⋅A, where matrix A is the source matrix and B is the matrix given as an input to the method. If no matrix is specified as the multiplier, the matrix is multiplied by a matrix in which every element is 0 except the bottom-right corner and the element immediately above and to its left: m33 and m34. These have the default value of 1.
|
|
2555
2555
|
*
|
|
2556
2556
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/preMultiplySelf)
|
|
2557
2557
|
*/
|
|
2558
2558
|
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
|
|
2559
2559
|
/**
|
|
2560
|
-
* The
|
|
2560
|
+
* The **`rotateAxisAngleSelf()`** method of the DOMMatrix interface is a transformation method that rotates the source matrix by the given vector and angle, returning the altered matrix.
|
|
2561
2561
|
*
|
|
2562
2562
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)
|
|
2563
2563
|
*/
|
|
2564
2564
|
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
2565
2565
|
/**
|
|
2566
|
-
* The
|
|
2566
|
+
* The **`rotateFromVectorSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by rotating the matrix by the angle between the specified vector and (1, 0). The rotation angle is determined by the angle between the vector (1,0)T and (x,y)T in the clockwise direction, or (+/-)arctan(y/x). If x and y are both 0, the angle is specified as 0, and the matrix is not altered.
|
|
2567
2567
|
*
|
|
2568
2568
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateFromVectorSelf)
|
|
2569
2569
|
*/
|
|
2570
2570
|
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
|
|
2571
2571
|
/**
|
|
2572
|
-
* The
|
|
2572
|
+
* The **`rotateSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. It rotates the source matrix around each of its axes by the specified number of degrees and returns the rotated matrix.
|
|
2573
2573
|
*
|
|
2574
2574
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/rotateSelf)
|
|
2575
2575
|
*/
|
|
2576
2576
|
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
2577
2577
|
/**
|
|
2578
|
-
* The **`scale3dSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of
|
|
2578
|
+
* The **`scale3dSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor to all three axes, centered on the given origin, with a default origin of (0, 0, 0), returning the 3D-scaled matrix.
|
|
2579
2579
|
*
|
|
2580
2580
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf)
|
|
2581
2581
|
*/
|
|
2582
2582
|
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
2583
2583
|
/**
|
|
2584
|
-
* The **`scaleSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of
|
|
2584
|
+
* The **`scaleSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix by applying a specified scaling factor, centered on the given origin, with a default origin of (0, 0), returning the scaled matrix.
|
|
2585
2585
|
*
|
|
2586
2586
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf)
|
|
2587
2587
|
*/
|
|
2588
2588
|
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
2589
2589
|
/**
|
|
2590
|
-
* The
|
|
2590
|
+
* The **`skewXSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. It skews the source matrix by applying the specified skew transformation along the X-axis and returns the skewed matrix.
|
|
2591
2591
|
*
|
|
2592
2592
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewXSelf)
|
|
2593
2593
|
*/
|
|
2594
2594
|
skewXSelf(sx?: number): DOMMatrix;
|
|
2595
2595
|
/**
|
|
2596
|
-
* The
|
|
2596
|
+
* The **`skewYSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. It skews the source matrix by applying the specified skew transformation along the Y-axis and returns the skewed matrix.
|
|
2597
2597
|
*
|
|
2598
2598
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/skewYSelf)
|
|
2599
2599
|
*/
|
|
2600
2600
|
skewYSelf(sy?: number): DOMMatrix;
|
|
2601
2601
|
/**
|
|
2602
|
-
* The
|
|
2602
|
+
* The **`translateSelf()`** method of the DOMMatrix interface is a mutable transformation method that modifies a matrix. It applies the specified vectors and returns the updated matrix. The default vector is [0, 0, 0].
|
|
2603
2603
|
*
|
|
2604
2604
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/translateSelf)
|
|
2605
2605
|
*/
|
|
@@ -2630,7 +2630,7 @@ declare var DOMMatrix: {
|
|
|
2630
2630
|
};
|
|
2631
2631
|
|
|
2632
2632
|
/**
|
|
2633
|
-
* The **`DOMMatrixReadOnly`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations.
|
|
2633
|
+
* The **`DOMMatrixReadOnly`** interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations. The DOMMatrix interface — which is based upon DOMMatrixReadOnly—adds mutability, allowing you to alter the matrix after creating it.
|
|
2634
2634
|
*
|
|
2635
2635
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly)
|
|
2636
2636
|
*/
|
|
@@ -2648,13 +2648,13 @@ interface DOMMatrixReadOnly {
|
|
|
2648
2648
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
|
2649
2649
|
readonly f: number;
|
|
2650
2650
|
/**
|
|
2651
|
-
* The readonly **`is2D`** property of the DOMMatrixReadOnly interface is a Boolean flag that is
|
|
2651
|
+
* The readonly **`is2D`** property of the DOMMatrixReadOnly interface is a Boolean flag that is true when the matrix is 2D. The value is true if the matrix was initialized as a 2D matrix and only 2D transformation operations were applied. Otherwise, the matrix is defined in 3D, and is2D is false.
|
|
2652
2652
|
*
|
|
2653
2653
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D)
|
|
2654
2654
|
*/
|
|
2655
2655
|
readonly is2D: boolean;
|
|
2656
2656
|
/**
|
|
2657
|
-
* The readonly **`isIdentity`** property of the DOMMatrixReadOnly interface is a Boolean whose value is
|
|
2657
|
+
* The readonly **`isIdentity`** property of the DOMMatrixReadOnly interface is a Boolean whose value is true if the matrix is the identity matrix.
|
|
2658
2658
|
*
|
|
2659
2659
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity)
|
|
2660
2660
|
*/
|
|
@@ -2692,43 +2692,43 @@ interface DOMMatrixReadOnly {
|
|
|
2692
2692
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly#instance_properties) */
|
|
2693
2693
|
readonly m44: number;
|
|
2694
2694
|
/**
|
|
2695
|
-
* The **`flipX()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
|
|
2695
|
+
* The **`flipX()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis. This is equivalent to multiplying the matrix by DOMMatrix(-1, 0, 0, 1, 0, 0). The original matrix is not modified.
|
|
2696
2696
|
*
|
|
2697
2697
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX)
|
|
2698
2698
|
*/
|
|
2699
2699
|
flipX(): DOMMatrix;
|
|
2700
2700
|
/**
|
|
2701
|
-
* The **`flipY()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis.
|
|
2701
|
+
* The **`flipY()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the y-axis. This is equivalent to multiplying the matrix by DOMMatrix(1, 0, 0, -1, 0, 0). The original matrix is not modified.
|
|
2702
2702
|
*
|
|
2703
2703
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY)
|
|
2704
2704
|
*/
|
|
2705
2705
|
flipY(): DOMMatrix;
|
|
2706
2706
|
/**
|
|
2707
|
-
* The **`inverse()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix.
|
|
2707
|
+
* The **`inverse()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the inverse of the original matrix. If the matrix cannot be inverted, the new matrix's components are all set to NaN and its is2D property is set to false. The original matrix is not changed.
|
|
2708
2708
|
*
|
|
2709
2709
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse)
|
|
2710
2710
|
*/
|
|
2711
2711
|
inverse(): DOMMatrix;
|
|
2712
2712
|
/**
|
|
2713
|
-
* The **`multiply()`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the
|
|
2713
|
+
* The **`multiply()`** method of the DOMMatrixReadOnly interface creates and returns a new matrix which is the dot product of the matrix and the otherMatrix parameter. If otherMatrix is omitted, the matrix is multiplied by a matrix in which every element is 0 except the bottom-right corner and the element immediately above and to its left: m33 and m34. These have the default value of 1. The original matrix is not modified.
|
|
2714
2714
|
*
|
|
2715
2715
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply)
|
|
2716
2716
|
*/
|
|
2717
2717
|
multiply(other?: DOMMatrixInit): DOMMatrix;
|
|
2718
2718
|
/**
|
|
2719
|
-
* The
|
|
2719
|
+
* The **`rotate()`** method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix around each of its axes by the specified number of degrees. The original matrix is not altered.
|
|
2720
2720
|
*
|
|
2721
2721
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate)
|
|
2722
2722
|
*/
|
|
2723
2723
|
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
|
|
2724
2724
|
/**
|
|
2725
|
-
* The
|
|
2725
|
+
* The **`rotateAxisAngle()`** method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by rotating the source matrix by the given vector and angle. The original matrix is not altered.
|
|
2726
2726
|
*
|
|
2727
2727
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)
|
|
2728
2728
|
*/
|
|
2729
2729
|
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
|
|
2730
2730
|
/**
|
|
2731
|
-
* The
|
|
2731
|
+
* The **`rotateFromVector()`** method of the DOMMatrixReadOnly interface is returns a new DOMMatrix created by rotating the source matrix by the angle between the specified vector and (1, 0). The rotation angle is determined by the angle between the vector (1,0)T and (x,y)T in the clockwise direction, or (+/-)arctan(y/x). If x and y are both 0, the angle is specified as 0. The original matrix is not altered.
|
|
2732
2732
|
*
|
|
2733
2733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)
|
|
2734
2734
|
*/
|
|
@@ -2740,7 +2740,7 @@ interface DOMMatrixReadOnly {
|
|
|
2740
2740
|
*/
|
|
2741
2741
|
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
|
|
2742
2742
|
/**
|
|
2743
|
-
* The **`scale3d()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix.
|
|
2743
|
+
* The **`scale3d()`** method of the DOMMatrixReadOnly interface creates a new matrix which is the result of a 3D scale transform being applied to the matrix. It returns a new DOMMatrix created by scaling the source 3d matrix by the given scale factor centered on the origin point specified by the origin parameters, with a default origin of (0, 0, 0). The original matrix is not modified.
|
|
2744
2744
|
*
|
|
2745
2745
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d)
|
|
2746
2746
|
*/
|
|
@@ -2748,43 +2748,43 @@ interface DOMMatrixReadOnly {
|
|
|
2748
2748
|
/** @deprecated */
|
|
2749
2749
|
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
|
|
2750
2750
|
/**
|
|
2751
|
-
* The
|
|
2751
|
+
* The **`skewX()`** method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its x-axis. The original matrix is not modified.
|
|
2752
2752
|
*
|
|
2753
2753
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX)
|
|
2754
2754
|
*/
|
|
2755
2755
|
skewX(sx?: number): DOMMatrix;
|
|
2756
2756
|
/**
|
|
2757
|
-
* The
|
|
2757
|
+
* The **`skewY()`** method of the DOMMatrixReadOnly interface returns a new DOMMatrix created by applying the specified skew transformation to the source matrix along its y-axis. The original matrix is not modified.
|
|
2758
2758
|
*
|
|
2759
2759
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY)
|
|
2760
2760
|
*/
|
|
2761
2761
|
skewY(sy?: number): DOMMatrix;
|
|
2762
2762
|
/**
|
|
2763
|
-
* The **`toFloat32Array()`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (
|
|
2763
|
+
* The **`toFloat32Array()`** method of the DOMMatrixReadOnly interface returns a new Float32Array containing all 16 elements (m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44) which comprise the matrix. The elements are stored into the array as single-precision floating-point numbers in column-major (colexographical access, or "colex") order. (In other words, down the first column from top to bottom, then the second column, and so forth.)
|
|
2764
2764
|
*
|
|
2765
2765
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)
|
|
2766
2766
|
*/
|
|
2767
2767
|
toFloat32Array(): Float32Array<ArrayBuffer>;
|
|
2768
2768
|
/**
|
|
2769
|
-
* The **`toFloat64Array()`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (
|
|
2769
|
+
* The **`toFloat64Array()`** method of the DOMMatrixReadOnly interface returns a new Float64Array containing all 16 elements (m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44) which comprise the matrix. The elements are stored into the array as double-precision floating-point numbers in column-major (colexographical access, or "colex") order. (In other words, down the first column from top to bottom, then the second column, and so forth.)
|
|
2770
2770
|
*
|
|
2771
2771
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)
|
|
2772
2772
|
*/
|
|
2773
2773
|
toFloat64Array(): Float64Array<ArrayBuffer>;
|
|
2774
2774
|
/**
|
|
2775
|
-
* The **`toJSON()`** method of the DOMMatrixReadOnly interface creates and returns a JSON object.
|
|
2775
|
+
* The **`toJSON()`** method of the DOMMatrixReadOnly interface creates and returns a JSON object. The JSON object includes the 2D matrix elements a through f, the 16 elements of the 4X4 3D matrix, m[1-4][1-4], the boolean is2D property, and the boolean isIdentity property.
|
|
2776
2776
|
*
|
|
2777
2777
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toJSON)
|
|
2778
2778
|
*/
|
|
2779
2779
|
toJSON(): any;
|
|
2780
2780
|
/**
|
|
2781
|
-
* The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix.
|
|
2781
|
+
* The **`transformPoint`** method of the DOMMatrixReadOnly interface creates a new DOMPoint object, transforming a specified point by the matrix. Neither the matrix nor the original point are altered.
|
|
2782
2782
|
*
|
|
2783
2783
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint)
|
|
2784
2784
|
*/
|
|
2785
2785
|
transformPoint(point?: DOMPointInit): DOMPoint;
|
|
2786
2786
|
/**
|
|
2787
|
-
* The
|
|
2787
|
+
* The **`translate()`** method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.
|
|
2788
2788
|
*
|
|
2789
2789
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate)
|
|
2790
2790
|
*/
|
|
@@ -2815,31 +2815,31 @@ declare var DOMMatrixReadOnly: {
|
|
|
2815
2815
|
};
|
|
2816
2816
|
|
|
2817
2817
|
/**
|
|
2818
|
-
* A **`DOMPoint`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value.
|
|
2818
|
+
* A **`DOMPoint`** object represents a 2D or 3D point in a coordinate system; it includes values for the coordinates in up to three dimensions, as well as an optional perspective value. DOMPoint is based on DOMPointReadOnly but allows its properties' values to be changed.
|
|
2819
2819
|
*
|
|
2820
2820
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint)
|
|
2821
2821
|
*/
|
|
2822
2822
|
interface DOMPoint extends DOMPointReadOnly {
|
|
2823
2823
|
/**
|
|
2824
|
-
* The
|
|
2824
|
+
* The DOMPoint interface's **`w`** property holds the point's perspective value, w, for a point in space.
|
|
2825
2825
|
*
|
|
2826
2826
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w)
|
|
2827
2827
|
*/
|
|
2828
2828
|
w: number;
|
|
2829
2829
|
/**
|
|
2830
|
-
* The
|
|
2830
|
+
* The DOMPoint interface's **`x`** property holds the horizontal coordinate, x, for a point in space.
|
|
2831
2831
|
*
|
|
2832
2832
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x)
|
|
2833
2833
|
*/
|
|
2834
2834
|
x: number;
|
|
2835
2835
|
/**
|
|
2836
|
-
* The
|
|
2836
|
+
* The DOMPoint interface's **`y`** property holds the vertical coordinate, y, for a point in space.
|
|
2837
2837
|
*
|
|
2838
2838
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y)
|
|
2839
2839
|
*/
|
|
2840
2840
|
y: number;
|
|
2841
2841
|
/**
|
|
2842
|
-
* The
|
|
2842
|
+
* The DOMPoint interface's **`z`** property specifies the depth coordinate of a point in space.
|
|
2843
2843
|
*
|
|
2844
2844
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z)
|
|
2845
2845
|
*/
|
|
@@ -2850,7 +2850,7 @@ declare var DOMPoint: {
|
|
|
2850
2850
|
prototype: DOMPoint;
|
|
2851
2851
|
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
|
|
2852
2852
|
/**
|
|
2853
|
-
* The **`fromPoint()`** static method of the DOMPoint interface creates and returns a new mutable
|
|
2853
|
+
* The **`fromPoint()`** static method of the DOMPoint interface creates and returns a new mutable DOMPoint object given a source point.
|
|
2854
2854
|
*
|
|
2855
2855
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static)
|
|
2856
2856
|
*/
|
|
@@ -2864,37 +2864,37 @@ declare var DOMPoint: {
|
|
|
2864
2864
|
*/
|
|
2865
2865
|
interface DOMPointReadOnly {
|
|
2866
2866
|
/**
|
|
2867
|
-
* The
|
|
2867
|
+
* The DOMPointReadOnly interface's **`w`** property holds the point's perspective value, w, for a read-only point in space.
|
|
2868
2868
|
*
|
|
2869
2869
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w)
|
|
2870
2870
|
*/
|
|
2871
2871
|
readonly w: number;
|
|
2872
2872
|
/**
|
|
2873
|
-
* The
|
|
2873
|
+
* The DOMPointReadOnly interface's **`x`** property holds the horizontal coordinate, x, for a read-only point in space. This property cannot be changed by JavaScript code in this read-only version of the DOMPoint object.
|
|
2874
2874
|
*
|
|
2875
2875
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x)
|
|
2876
2876
|
*/
|
|
2877
2877
|
readonly x: number;
|
|
2878
2878
|
/**
|
|
2879
|
-
* The **`
|
|
2879
|
+
* The DOMPointReadOnl**`y`** interface's y property holds the vertical coordinate, y, for a read-only point in space.
|
|
2880
2880
|
*
|
|
2881
2881
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y)
|
|
2882
2882
|
*/
|
|
2883
2883
|
readonly y: number;
|
|
2884
2884
|
/**
|
|
2885
|
-
* The
|
|
2885
|
+
* The DOMPointReadOnly interface's **`z`** property holds the depth coordinate, z, for a read-only point in space.
|
|
2886
2886
|
*
|
|
2887
2887
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z)
|
|
2888
2888
|
*/
|
|
2889
2889
|
readonly z: number;
|
|
2890
2890
|
/**
|
|
2891
|
-
* The **`matrixTransform()`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new
|
|
2891
|
+
* The **`matrixTransform()`** method of the DOMPointReadOnly interface applies a matrix transform specified as an object to the DOMPointReadOnly object, creating and returning a new DOMPointReadOnly object. Neither the matrix nor the point are altered.
|
|
2892
2892
|
*
|
|
2893
2893
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform)
|
|
2894
2894
|
*/
|
|
2895
2895
|
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
|
|
2896
2896
|
/**
|
|
2897
|
-
* The DOMPointReadOnly method
|
|
2897
|
+
* The DOMPointReadOnly method **`toJSON()`** returns an object giving the JSON form of the point object.
|
|
2898
2898
|
*
|
|
2899
2899
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON)
|
|
2900
2900
|
*/
|
|
@@ -2905,7 +2905,7 @@ declare var DOMPointReadOnly: {
|
|
|
2905
2905
|
prototype: DOMPointReadOnly;
|
|
2906
2906
|
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
|
|
2907
2907
|
/**
|
|
2908
|
-
* The static
|
|
2908
|
+
* The static DOMPointReadOnly method **`fromPoint()`** creates and returns a new DOMPointReadOnly object given a source point.
|
|
2909
2909
|
*
|
|
2910
2910
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static)
|
|
2911
2911
|
*/
|
|
@@ -2913,43 +2913,43 @@ declare var DOMPointReadOnly: {
|
|
|
2913
2913
|
};
|
|
2914
2914
|
|
|
2915
2915
|
/**
|
|
2916
|
-
* A
|
|
2916
|
+
* A **`DOMQuad`** is a collection of four DOMPoints defining the corners of an arbitrary quadrilateral. Returning DOMQuads lets getBoxQuads() return accurate information even when arbitrary 2D or 3D transforms are present. It has a handy bounds attribute returning a DOMRectReadOnly for those cases where you just want an axis-aligned bounding rectangle.
|
|
2917
2917
|
*
|
|
2918
2918
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad)
|
|
2919
2919
|
*/
|
|
2920
2920
|
interface DOMQuad {
|
|
2921
2921
|
/**
|
|
2922
|
-
* The
|
|
2922
|
+
* The DOMQuad interface's **`p1`** property holds the DOMPoint object that represents one of the four corners of the DOMQuad. When created from DOMQuad.fromRect(), it is the point (x, y).
|
|
2923
2923
|
*
|
|
2924
2924
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1)
|
|
2925
2925
|
*/
|
|
2926
2926
|
readonly p1: DOMPoint;
|
|
2927
2927
|
/**
|
|
2928
|
-
* The
|
|
2928
|
+
* The DOMQuad interface's **`p2`** property holds the DOMPoint object that represents one of the four corners of the DOMQuad. When created from DOMQuad.fromRect(), it is the point (x + width, y).
|
|
2929
2929
|
*
|
|
2930
2930
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2)
|
|
2931
2931
|
*/
|
|
2932
2932
|
readonly p2: DOMPoint;
|
|
2933
2933
|
/**
|
|
2934
|
-
* The
|
|
2934
|
+
* The DOMQuad interface's **`p3`** property holds the DOMPoint object that represents one of the four corners of the DOMQuad. When created from DOMQuad.fromRect(), it is the point (x + width, y + height).
|
|
2935
2935
|
*
|
|
2936
2936
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3)
|
|
2937
2937
|
*/
|
|
2938
2938
|
readonly p3: DOMPoint;
|
|
2939
2939
|
/**
|
|
2940
|
-
* The
|
|
2940
|
+
* The DOMQuad interface's **`p4`** property holds the DOMPoint object that represents one of the four corners of the DOMQuad. When created from DOMQuad.fromRect(), it is the point (x, y + height).
|
|
2941
2941
|
*
|
|
2942
2942
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4)
|
|
2943
2943
|
*/
|
|
2944
2944
|
readonly p4: DOMPoint;
|
|
2945
2945
|
/**
|
|
2946
|
-
* The DOMQuad method
|
|
2946
|
+
* The DOMQuad method **`getBounds()`** returns a DOMRect object representing the smallest rectangle that fully contains the DOMQuad object.
|
|
2947
2947
|
*
|
|
2948
2948
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds)
|
|
2949
2949
|
*/
|
|
2950
2950
|
getBounds(): DOMRect;
|
|
2951
2951
|
/**
|
|
2952
|
-
* The DOMQuad method
|
|
2952
|
+
* The DOMQuad method **`toJSON()`** returns a JSON representation of the DOMQuad object.
|
|
2953
2953
|
*
|
|
2954
2954
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/toJSON)
|
|
2955
2955
|
*/
|
|
@@ -2960,13 +2960,13 @@ declare var DOMQuad: {
|
|
|
2960
2960
|
prototype: DOMQuad;
|
|
2961
2961
|
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
|
|
2962
2962
|
/**
|
|
2963
|
-
* The **`fromQuad()`** static method of the DOMQuad interface returns a new
|
|
2963
|
+
* The **`fromQuad()`** static method of the DOMQuad interface returns a new DOMQuad object based on the provided set of coordinates in the shape of another DOMQuad object.
|
|
2964
2964
|
*
|
|
2965
2965
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromQuad_static)
|
|
2966
2966
|
*/
|
|
2967
2967
|
fromQuad(other?: DOMQuadInit): DOMQuad;
|
|
2968
2968
|
/**
|
|
2969
|
-
* The **`fromRect()`** static method of the DOMQuad interface returns a new
|
|
2969
|
+
* The **`fromRect()`** static method of the DOMQuad interface returns a new DOMQuad object based on the provided set of coordinates in the shape of a DOMRect object.
|
|
2970
2970
|
*
|
|
2971
2971
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/fromRect_static)
|
|
2972
2972
|
*/
|
|
@@ -2980,13 +2980,13 @@ declare var DOMQuad: {
|
|
|
2980
2980
|
*/
|
|
2981
2981
|
interface DOMRect extends DOMRectReadOnly {
|
|
2982
2982
|
/**
|
|
2983
|
-
* The **`height`** property of the DOMRect interface represents the height of the rectangle.
|
|
2983
|
+
* The **`height`** property of the DOMRect interface represents the height of the rectangle. The value can be negative.
|
|
2984
2984
|
*
|
|
2985
2985
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/height)
|
|
2986
2986
|
*/
|
|
2987
2987
|
height: number;
|
|
2988
2988
|
/**
|
|
2989
|
-
* The **`width`** property of the DOMRect interface represents the width of the rectangle.
|
|
2989
|
+
* The **`width`** property of the DOMRect interface represents the width of the rectangle. The value can be negative.
|
|
2990
2990
|
*
|
|
2991
2991
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/width)
|
|
2992
2992
|
*/
|
|
@@ -3009,7 +3009,7 @@ declare var DOMRect: {
|
|
|
3009
3009
|
prototype: DOMRect;
|
|
3010
3010
|
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
|
|
3011
3011
|
/**
|
|
3012
|
-
* The **`fromRect()`** static method of the DOMRect object creates a new
|
|
3012
|
+
* The **`fromRect()`** static method of the DOMRect object creates a new DOMRect object with a given location and dimensions.
|
|
3013
3013
|
*
|
|
3014
3014
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect/fromRect_static)
|
|
3015
3015
|
*/
|
|
@@ -3023,55 +3023,55 @@ declare var DOMRect: {
|
|
|
3023
3023
|
*/
|
|
3024
3024
|
interface DOMRectReadOnly {
|
|
3025
3025
|
/**
|
|
3026
|
-
* The **`bottom`** read-only property of the
|
|
3026
|
+
* The **`bottom`** read-only property of the DOMRectReadOnly interface returns the bottom coordinate value of the DOMRect. (Has the same value as y + height, or y if height is negative.)
|
|
3027
3027
|
*
|
|
3028
3028
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom)
|
|
3029
3029
|
*/
|
|
3030
3030
|
readonly bottom: number;
|
|
3031
3031
|
/**
|
|
3032
|
-
* The **`height`** read-only property of the
|
|
3032
|
+
* The **`height`** read-only property of the DOMRectReadOnly interface represents the height of the DOMRect.
|
|
3033
3033
|
*
|
|
3034
3034
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height)
|
|
3035
3035
|
*/
|
|
3036
3036
|
readonly height: number;
|
|
3037
3037
|
/**
|
|
3038
|
-
* The **`left`** read-only property of the
|
|
3038
|
+
* The **`left`** read-only property of the DOMRectReadOnly interface returns the left coordinate value of the DOMRect. (Has the same value as x, or x + width if width is negative.)
|
|
3039
3039
|
*
|
|
3040
3040
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left)
|
|
3041
3041
|
*/
|
|
3042
3042
|
readonly left: number;
|
|
3043
3043
|
/**
|
|
3044
|
-
* The **`right`** read-only property of the
|
|
3044
|
+
* The **`right`** read-only property of the DOMRectReadOnly interface returns the right coordinate value of the DOMRect. (Has the same value as x + width, or x if width is negative.)
|
|
3045
3045
|
*
|
|
3046
3046
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right)
|
|
3047
3047
|
*/
|
|
3048
3048
|
readonly right: number;
|
|
3049
3049
|
/**
|
|
3050
|
-
* The **`top`** read-only property of the
|
|
3050
|
+
* The **`top`** read-only property of the DOMRectReadOnly interface returns the top coordinate value of the DOMRect. (Has the same value as y, or y + height if height is negative.)
|
|
3051
3051
|
*
|
|
3052
3052
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top)
|
|
3053
3053
|
*/
|
|
3054
3054
|
readonly top: number;
|
|
3055
3055
|
/**
|
|
3056
|
-
* The **`width`** read-only property of the
|
|
3056
|
+
* The **`width`** read-only property of the DOMRectReadOnly interface represents the width of the DOMRect.
|
|
3057
3057
|
*
|
|
3058
3058
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width)
|
|
3059
3059
|
*/
|
|
3060
3060
|
readonly width: number;
|
|
3061
3061
|
/**
|
|
3062
|
-
* The **`x`** read-only property of the
|
|
3062
|
+
* The **`x`** read-only property of the DOMRectReadOnly interface represents the x coordinate of the DOMRect's origin.
|
|
3063
3063
|
*
|
|
3064
3064
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x)
|
|
3065
3065
|
*/
|
|
3066
3066
|
readonly x: number;
|
|
3067
3067
|
/**
|
|
3068
|
-
* The **`y`** read-only property of the
|
|
3068
|
+
* The **`y`** read-only property of the DOMRectReadOnly interface represents the y coordinate of the DOMRect's origin.
|
|
3069
3069
|
*
|
|
3070
3070
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y)
|
|
3071
3071
|
*/
|
|
3072
3072
|
readonly y: number;
|
|
3073
3073
|
/**
|
|
3074
|
-
* The DOMRectReadOnly method
|
|
3074
|
+
* The DOMRectReadOnly method **`toJSON()`** returns a JSON representation of the DOMRectReadOnly object.
|
|
3075
3075
|
*
|
|
3076
3076
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/toJSON)
|
|
3077
3077
|
*/
|
|
@@ -3082,7 +3082,7 @@ declare var DOMRectReadOnly: {
|
|
|
3082
3082
|
prototype: DOMRectReadOnly;
|
|
3083
3083
|
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
|
|
3084
3084
|
/**
|
|
3085
|
-
* The **`fromRect()`** static method of the DOMRectReadOnly object creates a new
|
|
3085
|
+
* The **`fromRect()`** static method of the DOMRectReadOnly object creates a new DOMRectReadOnly object with a given location and dimensions.
|
|
3086
3086
|
*
|
|
3087
3087
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static)
|
|
3088
3088
|
*/
|
|
@@ -3090,7 +3090,7 @@ declare var DOMRectReadOnly: {
|
|
|
3090
3090
|
};
|
|
3091
3091
|
|
|
3092
3092
|
/**
|
|
3093
|
-
* The **`DOMStringList`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (
|
|
3093
|
+
* The **`DOMStringList`** interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (DOMString).
|
|
3094
3094
|
*
|
|
3095
3095
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
|
|
3096
3096
|
*/
|
|
@@ -3108,7 +3108,7 @@ interface DOMStringList {
|
|
|
3108
3108
|
*/
|
|
3109
3109
|
contains(string: string): boolean;
|
|
3110
3110
|
/**
|
|
3111
|
-
* The **`item()`** method returns a string from a
|
|
3111
|
+
* The **`item()`** method returns a string from a DOMStringList by index.
|
|
3112
3112
|
*
|
|
3113
3113
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
|
|
3114
3114
|
*/
|
|
@@ -3167,7 +3167,7 @@ interface EXT_color_buffer_half_float {
|
|
|
3167
3167
|
}
|
|
3168
3168
|
|
|
3169
3169
|
/**
|
|
3170
|
-
* The WebGL API's
|
|
3170
|
+
* The WebGL API's **`EXT_float_blend`** extension allows blending and draw buffers with 32-bit floating-point components.
|
|
3171
3171
|
*
|
|
3172
3172
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend)
|
|
3173
3173
|
*/
|
|
@@ -3203,7 +3203,7 @@ interface EXT_shader_texture_lod {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
|
|
3205
3205
|
/**
|
|
3206
|
-
* The
|
|
3206
|
+
* The **`EXT_texture_compression_bptc`** extension is part of the WebGL API and exposes 4 BPTC compressed texture formats. These compression formats are called BC7 and BC6H in Microsoft's DirectX API.
|
|
3207
3207
|
*
|
|
3208
3208
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc)
|
|
3209
3209
|
*/
|
|
@@ -3215,7 +3215,7 @@ interface EXT_texture_compression_bptc {
|
|
|
3215
3215
|
}
|
|
3216
3216
|
|
|
3217
3217
|
/**
|
|
3218
|
-
* The
|
|
3218
|
+
* The **`EXT_texture_compression_rgtc`** extension is part of the WebGL API and exposes 4 RGTC compressed texture formats. RGTC is a block-based texture compression format suited for unsigned and signed red and red-green textures (Red-Green Texture Compression).
|
|
3219
3219
|
*
|
|
3220
3220
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc)
|
|
3221
3221
|
*/
|
|
@@ -3296,7 +3296,7 @@ declare var ErrorEvent: {
|
|
|
3296
3296
|
};
|
|
3297
3297
|
|
|
3298
3298
|
/**
|
|
3299
|
-
* The **`Event`** interface represents an event which takes place on an
|
|
3299
|
+
* The **`Event`** interface represents an event which takes place on an EventTarget.
|
|
3300
3300
|
*
|
|
3301
3301
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
|
|
3302
3302
|
*/
|
|
@@ -3308,7 +3308,7 @@ interface Event {
|
|
|
3308
3308
|
*/
|
|
3309
3309
|
readonly bubbles: boolean;
|
|
3310
3310
|
/**
|
|
3311
|
-
* The **`cancelBubble`** property of the Event interface is deprecated.
|
|
3311
|
+
* The **`cancelBubble`** property of the Event interface is deprecated. Use Event.stopPropagation() instead. Setting its value to true before returning from an event handler prevents propagation of the event. In later implementations, setting this to false does nothing. See Browser compatibility for details.
|
|
3312
3312
|
* @deprecated
|
|
3313
3313
|
*
|
|
3314
3314
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
|
|
@@ -3345,7 +3345,7 @@ interface Event {
|
|
|
3345
3345
|
*/
|
|
3346
3346
|
readonly eventPhase: number;
|
|
3347
3347
|
/**
|
|
3348
|
-
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is
|
|
3348
|
+
* The **`isTrusted`** read-only property of the Event interface is a boolean value that is true when the event was generated by the user agent (including via user actions and programmatic methods such as HTMLElement.focus()), and false when the event was dispatched via EventTarget.dispatchEvent(). The only exception is the click event, which initializes the isTrusted property to false in user agents.
|
|
3349
3349
|
*
|
|
3350
3350
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
|
|
3351
3351
|
*/
|
|
@@ -3358,14 +3358,14 @@ interface Event {
|
|
|
3358
3358
|
*/
|
|
3359
3359
|
returnValue: boolean;
|
|
3360
3360
|
/**
|
|
3361
|
-
* The deprecated **`Event.srcElement`** is an alias for the Event.target property.
|
|
3361
|
+
* The deprecated **`Event.srcElement`** is an alias for the Event.target property. Use Event.target instead.
|
|
3362
3362
|
* @deprecated
|
|
3363
3363
|
*
|
|
3364
3364
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
|
|
3365
3365
|
*/
|
|
3366
3366
|
readonly srcElement: EventTarget | null;
|
|
3367
3367
|
/**
|
|
3368
|
-
* The read-only **`target`** property of the Event interface is a reference to the object onto which the event was dispatched.
|
|
3368
|
+
* The read-only **`target`** property of the Event interface is a reference to the object onto which the event was dispatched. It is different from Event.currentTarget when the event handler is called during the bubbling or capturing phase of the event.
|
|
3369
3369
|
*
|
|
3370
3370
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
|
|
3371
3371
|
*/
|
|
@@ -3377,13 +3377,13 @@ interface Event {
|
|
|
3377
3377
|
*/
|
|
3378
3378
|
readonly timeStamp: DOMHighResTimeStamp;
|
|
3379
3379
|
/**
|
|
3380
|
-
* The **`type`** read-only property of the Event interface returns a string containing the event's type.
|
|
3380
|
+
* The **`type`** read-only property of the Event interface returns a string containing the event's type. It is set when the event is constructed and is the name commonly used to refer to the specific event, such as click, load, or error.
|
|
3381
3381
|
*
|
|
3382
3382
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
|
|
3383
3383
|
*/
|
|
3384
3384
|
readonly type: string;
|
|
3385
3385
|
/**
|
|
3386
|
-
* The **`composedPath()`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked.
|
|
3386
|
+
* The **`composedPath()`** method of the Event interface returns the event's path which is an array of the objects on which listeners will be invoked. This does not include nodes in shadow trees if the shadow root was created with its ShadowRoot.mode closed.
|
|
3387
3387
|
*
|
|
3388
3388
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
|
|
3389
3389
|
*/
|
|
@@ -3408,7 +3408,7 @@ interface Event {
|
|
|
3408
3408
|
*/
|
|
3409
3409
|
stopImmediatePropagation(): void;
|
|
3410
3410
|
/**
|
|
3411
|
-
* The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
|
|
3411
|
+
* The **`stopPropagation()`** method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases. It does not, however, prevent any default behaviors from occurring; for instance, clicks on links are still processed. If you want to stop those behaviors, see the preventDefault() method. It also does not prevent propagation to other event-handlers of the current element. If you want to stop those, see stopImmediatePropagation().
|
|
3412
3412
|
*
|
|
3413
3413
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
|
|
3414
3414
|
*/
|
|
@@ -3467,13 +3467,13 @@ interface EventSource extends EventTarget {
|
|
|
3467
3467
|
*/
|
|
3468
3468
|
readonly url: string;
|
|
3469
3469
|
/**
|
|
3470
|
-
* The **`withCredentials`** read-only property of the EventSource interface returns a boolean value indicating whether the
|
|
3470
|
+
* The **`withCredentials`** read-only property of the EventSource interface returns a boolean value indicating whether the EventSource object was instantiated with CORS credentials set.
|
|
3471
3471
|
*
|
|
3472
3472
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
|
|
3473
3473
|
*/
|
|
3474
3474
|
readonly withCredentials: boolean;
|
|
3475
3475
|
/**
|
|
3476
|
-
* The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the EventSource.readyState attribute to
|
|
3476
|
+
* The **`close()`** method of the EventSource interface closes the connection, if one is made, and sets the EventSource.readyState attribute to 2 (closed).
|
|
3477
3477
|
*
|
|
3478
3478
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
|
|
3479
3479
|
*/
|
|
@@ -3498,7 +3498,7 @@ declare var EventSource: {
|
|
|
3498
3498
|
};
|
|
3499
3499
|
|
|
3500
3500
|
/**
|
|
3501
|
-
* The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them.
|
|
3501
|
+
* The **`EventTarget`** interface is implemented by objects that can receive events and may have listeners for them. In other words, any target of events implements the three methods associated with this interface.
|
|
3502
3502
|
*
|
|
3503
3503
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
|
|
3504
3504
|
*/
|
|
@@ -3510,13 +3510,13 @@ interface EventTarget {
|
|
|
3510
3510
|
*/
|
|
3511
3511
|
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
3512
3512
|
/**
|
|
3513
|
-
* The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
|
|
3513
|
+
* The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
|
|
3514
3514
|
*
|
|
3515
3515
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
3516
3516
|
*/
|
|
3517
3517
|
dispatchEvent(event: Event): boolean;
|
|
3518
3518
|
/**
|
|
3519
|
-
* The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
|
|
3519
|
+
* The **`removeEventListener()`** method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
|
|
3520
3520
|
*
|
|
3521
3521
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
|
|
3522
3522
|
*/
|
|
@@ -3529,19 +3529,19 @@ declare var EventTarget: {
|
|
|
3529
3529
|
};
|
|
3530
3530
|
|
|
3531
3531
|
/**
|
|
3532
|
-
* The **`ExtendableCookieChangeEvent`** interface of the Cookie Store API is the event type passed to
|
|
3532
|
+
* The **`ExtendableCookieChangeEvent`** interface of the Cookie Store API is the event type passed to cookiechange event fired at the ServiceWorkerGlobalScope when any cookie changes occur which match the service worker's cookie change subscription list. A cookie change event consists of a cookie and a type (either "changed" or "deleted").
|
|
3533
3533
|
*
|
|
3534
3534
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent)
|
|
3535
3535
|
*/
|
|
3536
3536
|
interface ExtendableCookieChangeEvent extends ExtendableEvent {
|
|
3537
3537
|
/**
|
|
3538
|
-
* The **`changed`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been changed by the given
|
|
3538
|
+
* The **`changed`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been changed by the given ExtendableCookieChangeEvent instance.
|
|
3539
3539
|
*
|
|
3540
3540
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/changed)
|
|
3541
3541
|
*/
|
|
3542
3542
|
readonly changed: ReadonlyArray<CookieListItem>;
|
|
3543
3543
|
/**
|
|
3544
|
-
* The **`deleted`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been deleted by the given
|
|
3544
|
+
* The **`deleted`** read-only property of the ExtendableCookieChangeEvent interface returns any cookies that have been deleted by the given ExtendableCookieChangeEvent instance.
|
|
3545
3545
|
*
|
|
3546
3546
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableCookieChangeEvent/deleted)
|
|
3547
3547
|
*/
|
|
@@ -3554,13 +3554,13 @@ declare var ExtendableCookieChangeEvent: {
|
|
|
3554
3554
|
};
|
|
3555
3555
|
|
|
3556
3556
|
/**
|
|
3557
|
-
* The **`ExtendableEvent`** interface extends the lifetime of the
|
|
3557
|
+
* The **`ExtendableEvent`** interface extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
|
|
3558
3558
|
*
|
|
3559
3559
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
|
|
3560
3560
|
*/
|
|
3561
3561
|
interface ExtendableEvent extends Event {
|
|
3562
3562
|
/**
|
|
3563
|
-
* The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing.
|
|
3563
|
+
* The **`ExtendableEvent.waitUntil()`** method tells the event dispatcher that work is ongoing. It can also be used to detect whether that work was successful. In service workers, waitUntil() tells the browser that work is ongoing until the promise settles, and it shouldn't terminate the service worker if it wants that work to complete.
|
|
3564
3564
|
*
|
|
3565
3565
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil)
|
|
3566
3566
|
*/
|
|
@@ -3573,19 +3573,19 @@ declare var ExtendableEvent: {
|
|
|
3573
3573
|
};
|
|
3574
3574
|
|
|
3575
3575
|
/**
|
|
3576
|
-
* The **`ExtendableMessageEvent`** interface of the Service Worker API represents the event object of a
|
|
3576
|
+
* The **`ExtendableMessageEvent`** interface of the Service Worker API represents the event object of a message event fired on a service worker (when a message is received on the ServiceWorkerGlobalScope from another context) — extends the lifetime of such events.
|
|
3577
3577
|
*
|
|
3578
3578
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)
|
|
3579
3579
|
*/
|
|
3580
3580
|
interface ExtendableMessageEvent extends ExtendableEvent {
|
|
3581
3581
|
/**
|
|
3582
|
-
* The **`data`** read-only property of the ExtendableMessageEvent interface returns the event's data.
|
|
3582
|
+
* The **`data`** read-only property of the ExtendableMessageEvent interface returns the event's data. It can be any data type.
|
|
3583
3583
|
*
|
|
3584
3584
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data)
|
|
3585
3585
|
*/
|
|
3586
3586
|
readonly data: any;
|
|
3587
3587
|
/**
|
|
3588
|
-
* The
|
|
3588
|
+
* The lastEventID read-only property of the ExtendableMessageEvent interface represents, in server-sent events, the last event ID of the event source. This is an empty string.
|
|
3589
3589
|
*
|
|
3590
3590
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId)
|
|
3591
3591
|
*/
|
|
@@ -3616,7 +3616,7 @@ declare var ExtendableMessageEvent: {
|
|
|
3616
3616
|
};
|
|
3617
3617
|
|
|
3618
3618
|
/**
|
|
3619
|
-
* This is the event type for
|
|
3619
|
+
* This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.
|
|
3620
3620
|
*
|
|
3621
3621
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
|
|
3622
3622
|
*/
|
|
@@ -3628,13 +3628,13 @@ interface FetchEvent extends ExtendableEvent {
|
|
|
3628
3628
|
*/
|
|
3629
3629
|
readonly clientId: string;
|
|
3630
3630
|
/**
|
|
3631
|
-
* The **`handled`** property of the FetchEvent interface returns a promise indicating if the event has been handled by the fetch algorithm or not.
|
|
3631
|
+
* The **`handled`** property of the FetchEvent interface returns a promise indicating if the event has been handled by the fetch algorithm or not. This property allows executing code after the browser has consumed a response, and is usually used together with the waitUntil() method.
|
|
3632
3632
|
*
|
|
3633
3633
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled)
|
|
3634
3634
|
*/
|
|
3635
3635
|
readonly handled: Promise<void>;
|
|
3636
3636
|
/**
|
|
3637
|
-
* The **`preloadResponse`** read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered, or
|
|
3637
|
+
* The **`preloadResponse`** read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered, or undefined otherwise.
|
|
3638
3638
|
*
|
|
3639
3639
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse)
|
|
3640
3640
|
*/
|
|
@@ -3646,7 +3646,7 @@ interface FetchEvent extends ExtendableEvent {
|
|
|
3646
3646
|
*/
|
|
3647
3647
|
readonly request: Request;
|
|
3648
3648
|
/**
|
|
3649
|
-
* The **`resultingClientId`** read-only property of the FetchEvent interface is the
|
|
3649
|
+
* The **`resultingClientId`** read-only property of the FetchEvent interface is the id of the client that replaces the previous client during a page navigation.
|
|
3650
3650
|
*
|
|
3651
3651
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId)
|
|
3652
3652
|
*/
|
|
@@ -3671,19 +3671,19 @@ declare var FetchEvent: {
|
|
|
3671
3671
|
*/
|
|
3672
3672
|
interface File extends Blob {
|
|
3673
3673
|
/**
|
|
3674
|
-
* The **`lastModified`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight).
|
|
3674
|
+
* The **`lastModified`** read-only property of the File interface provides the last modified date of the file as the number of milliseconds since the Unix epoch (January 1, 1970 at midnight). Files without a known last modified date return the current date.
|
|
3675
3675
|
*
|
|
3676
3676
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified)
|
|
3677
3677
|
*/
|
|
3678
3678
|
readonly lastModified: number;
|
|
3679
3679
|
/**
|
|
3680
|
-
* The **`name`** read-only property of the File interface returns the name of the file represented by a File object.
|
|
3680
|
+
* The **`name`** read-only property of the File interface returns the name of the file represented by a File object. For security reasons, the path is excluded from this property.
|
|
3681
3681
|
*
|
|
3682
3682
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name)
|
|
3683
3683
|
*/
|
|
3684
3684
|
readonly name: string;
|
|
3685
3685
|
/**
|
|
3686
|
-
* The **`webkitRelativePath`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an input element with its
|
|
3686
|
+
* The **`webkitRelativePath`** read-only property of the File interface contains a string which specifies the file's path relative to the directory selected by the user in an <input> element with its webkitdirectory attribute set.
|
|
3687
3687
|
*
|
|
3688
3688
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath)
|
|
3689
3689
|
*/
|
|
@@ -3696,13 +3696,13 @@ declare var File: {
|
|
|
3696
3696
|
};
|
|
3697
3697
|
|
|
3698
3698
|
/**
|
|
3699
|
-
* The **`FileList`** interface represents an object of this type returned by the
|
|
3699
|
+
* The **`FileList`** interface represents an object of this type returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
|
|
3700
3700
|
*
|
|
3701
3701
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
|
|
3702
3702
|
*/
|
|
3703
3703
|
interface FileList {
|
|
3704
3704
|
/**
|
|
3705
|
-
* The **`length`** read-only property of the FileList interface returns the number of files in the
|
|
3705
|
+
* The **`length`** read-only property of the FileList interface returns the number of files in the FileList.
|
|
3706
3706
|
*
|
|
3707
3707
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length)
|
|
3708
3708
|
*/
|
|
@@ -3755,44 +3755,44 @@ interface FileReader extends EventTarget {
|
|
|
3755
3755
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
|
|
3756
3756
|
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
|
|
3757
3757
|
/**
|
|
3758
|
-
* The **`readyState`** read-only property of the FileReader interface provides the current state of the reading operation.
|
|
3758
|
+
* The **`readyState`** read-only property of the FileReader interface provides the current state of the reading operation. This will be one of the states: EMPTY, LOADING, or DONE.
|
|
3759
3759
|
*
|
|
3760
3760
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState)
|
|
3761
3761
|
*/
|
|
3762
3762
|
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
|
|
3763
3763
|
/**
|
|
3764
|
-
* The **`result`** read-only property of the FileReader interface returns the file's contents.
|
|
3764
|
+
* The **`result`** read-only property of the FileReader interface returns the file's contents. This property is only valid after the read operation is complete, and the format of the data depends on which of the methods was used to initiate the read operation.
|
|
3765
3765
|
*
|
|
3766
3766
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result)
|
|
3767
3767
|
*/
|
|
3768
3768
|
readonly result: string | ArrayBuffer | null;
|
|
3769
3769
|
/**
|
|
3770
|
-
* The **`abort()`** method of the FileReader interface aborts the read operation.
|
|
3770
|
+
* The **`abort()`** method of the FileReader interface aborts the read operation. Upon return, the readyState will be DONE.
|
|
3771
3771
|
*
|
|
3772
3772
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort)
|
|
3773
3773
|
*/
|
|
3774
3774
|
abort(): void;
|
|
3775
3775
|
/**
|
|
3776
|
-
* The **`readAsArrayBuffer()`** method of the FileReader interface is used to start reading the contents of a specified Blob or File.
|
|
3776
|
+
* The **`readAsArrayBuffer()`** method of the FileReader interface is used to start reading the contents of a specified Blob or File. When the read operation is finished, the readyState property becomes DONE, and the loadend event is triggered. At that time, the result property contains an ArrayBuffer representing the file's data.
|
|
3777
3777
|
*
|
|
3778
3778
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer)
|
|
3779
3779
|
*/
|
|
3780
3780
|
readAsArrayBuffer(blob: Blob): void;
|
|
3781
3781
|
/**
|
|
3782
|
-
* The **`readAsBinaryString()`** method of the FileReader interface is used to start reading the contents of the specified Blob or File.
|
|
3782
|
+
* The **`readAsBinaryString()`** method of the FileReader interface is used to start reading the contents of the specified Blob or File. When the read operation is finished, the readyState property becomes DONE, and the loadend event is triggered. At that time, the result property contains the raw binary data from the file.
|
|
3783
3783
|
* @deprecated
|
|
3784
3784
|
*
|
|
3785
3785
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
|
|
3786
3786
|
*/
|
|
3787
3787
|
readAsBinaryString(blob: Blob): void;
|
|
3788
3788
|
/**
|
|
3789
|
-
* The **`readAsDataURL()`** method of the FileReader interface is used to read the contents of the specified Blob or File.
|
|
3789
|
+
* The **`readAsDataURL()`** method of the FileReader interface is used to read the contents of the specified Blob or File. When the read operation is finished, the readyState property becomes DONE, and the loadend event is triggered. At that time, the result attribute contains the data as a data: URL representing the file's data as a base64 encoded string.
|
|
3790
3790
|
*
|
|
3791
3791
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL)
|
|
3792
3792
|
*/
|
|
3793
3793
|
readAsDataURL(blob: Blob): void;
|
|
3794
3794
|
/**
|
|
3795
|
-
* The **`readAsText()`** method of the FileReader interface is used to read the contents of the specified Blob or File.
|
|
3795
|
+
* The **`readAsText()`** method of the FileReader interface is used to read the contents of the specified Blob or File. When the read operation is complete, the readyState property is changed to DONE, the loadend event is triggered, and the result property contains the contents of the file as a text string.
|
|
3796
3796
|
*
|
|
3797
3797
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText)
|
|
3798
3798
|
*/
|
|
@@ -3854,7 +3854,7 @@ declare var FileSystemDirectoryHandle: {
|
|
|
3854
3854
|
};
|
|
3855
3855
|
|
|
3856
3856
|
/**
|
|
3857
|
-
* The **`FileSystemFileHandle`** interface of the File System API represents a handle to a file system entry.
|
|
3857
|
+
* The **`FileSystemFileHandle`** interface of the File System API represents a handle to a file system entry. The interface is accessed through the window.showOpenFilePicker() method.
|
|
3858
3858
|
* Available only in secure contexts.
|
|
3859
3859
|
*
|
|
3860
3860
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
|
|
@@ -3862,7 +3862,7 @@ declare var FileSystemDirectoryHandle: {
|
|
|
3862
3862
|
interface FileSystemFileHandle extends FileSystemHandle {
|
|
3863
3863
|
readonly kind: "file";
|
|
3864
3864
|
/**
|
|
3865
|
-
* The **`createWritable()`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file.
|
|
3865
|
+
* The **`createWritable()`** method of the FileSystemFileHandle interface creates a FileSystemWritableFileStream that can be used to write to a file. The method returns a Promise which resolves to this created stream.
|
|
3866
3866
|
*
|
|
3867
3867
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable)
|
|
3868
3868
|
*/
|
|
@@ -3881,14 +3881,14 @@ declare var FileSystemFileHandle: {
|
|
|
3881
3881
|
};
|
|
3882
3882
|
|
|
3883
3883
|
/**
|
|
3884
|
-
* The **`FileSystemHandle`** interface of the File System API is an object which represents a file or directory entry.
|
|
3884
|
+
* The **`FileSystemHandle`** interface of the File System API is an object which represents a file or directory entry. Multiple handles can represent the same entry. For the most part you do not work with FileSystemHandle directly but rather its child interfaces FileSystemFileHandle and FileSystemDirectoryHandle.
|
|
3885
3885
|
* Available only in secure contexts.
|
|
3886
3886
|
*
|
|
3887
3887
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
|
|
3888
3888
|
*/
|
|
3889
3889
|
interface FileSystemHandle {
|
|
3890
3890
|
/**
|
|
3891
|
-
* The **`kind`** read-only property of the FileSystemHandle interface returns the type of entry.
|
|
3891
|
+
* The **`kind`** read-only property of the FileSystemHandle interface returns the type of entry. This is 'file' if the associated entry is a file or 'directory'. It is used to distinguish files from directories when iterating over the contents of a directory.
|
|
3892
3892
|
*
|
|
3893
3893
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind)
|
|
3894
3894
|
*/
|
|
@@ -3900,7 +3900,7 @@ interface FileSystemHandle {
|
|
|
3900
3900
|
*/
|
|
3901
3901
|
readonly name: string;
|
|
3902
3902
|
/**
|
|
3903
|
-
* The **`isSameEntry()`** method of the FileSystemHandle interface compares two
|
|
3903
|
+
* The **`isSameEntry()`** method of the FileSystemHandle interface compares two handles to see if the associated entries (either a file or directory) match.
|
|
3904
3904
|
*
|
|
3905
3905
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry)
|
|
3906
3906
|
*/
|
|
@@ -3913,7 +3913,7 @@ declare var FileSystemHandle: {
|
|
|
3913
3913
|
};
|
|
3914
3914
|
|
|
3915
3915
|
/**
|
|
3916
|
-
* The **`FileSystemWritableFileStream`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk.
|
|
3916
|
+
* The **`FileSystemWritableFileStream`** interface of the File System API is a WritableStream object with additional convenience methods, which operates on a single file on disk. The interface is accessed through the FileSystemFileHandle.createWritable() method.
|
|
3917
3917
|
* Available only in secure contexts.
|
|
3918
3918
|
*
|
|
3919
3919
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
|
|
@@ -3957,13 +3957,13 @@ interface FontFace {
|
|
|
3957
3957
|
*/
|
|
3958
3958
|
ascentOverride: string;
|
|
3959
3959
|
/**
|
|
3960
|
-
* The **`descentOverride`** property of the FontFace interface returns and sets the value of the
|
|
3960
|
+
* The **`descentOverride`** property of the FontFace interface returns and sets the value of the descent-override descriptor. The possible values are normal, indicating that the metric used should be obtained from the font file, or a percentage.
|
|
3961
3961
|
*
|
|
3962
3962
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride)
|
|
3963
3963
|
*/
|
|
3964
3964
|
descentOverride: string;
|
|
3965
3965
|
/**
|
|
3966
|
-
* The **`display`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use.
|
|
3966
|
+
* The **`display`** property of the FontFace interface determines how a font face is displayed based on whether and when it is downloaded and ready to use. This property is equivalent to the CSS font-display descriptor.
|
|
3967
3967
|
*
|
|
3968
3968
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display)
|
|
3969
3969
|
*/
|
|
@@ -3981,19 +3981,19 @@ interface FontFace {
|
|
|
3981
3981
|
*/
|
|
3982
3982
|
featureSettings: string;
|
|
3983
3983
|
/**
|
|
3984
|
-
* The **`lineGapOverride`** property of the FontFace interface returns and sets the value of the
|
|
3984
|
+
* The **`lineGapOverride`** property of the FontFace interface returns and sets the value of the line-gap-override descriptor. The possible values are normal, indicating that the metric used should be obtained from the font file, or a percentage.
|
|
3985
3985
|
*
|
|
3986
3986
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride)
|
|
3987
3987
|
*/
|
|
3988
3988
|
lineGapOverride: string;
|
|
3989
3989
|
/**
|
|
3990
|
-
* The **`loaded`** read-only property of the FontFace interface returns a Promise that resolves with the current
|
|
3990
|
+
* The **`loaded`** read-only property of the FontFace interface returns a Promise that resolves with the current FontFace object when the font specified in the object's constructor is done loading or rejects with a SyntaxError.
|
|
3991
3991
|
*
|
|
3992
3992
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded)
|
|
3993
3993
|
*/
|
|
3994
3994
|
readonly loaded: Promise<FontFace>;
|
|
3995
3995
|
/**
|
|
3996
|
-
* The **`status`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of
|
|
3996
|
+
* The **`status`** read-only property of the FontFace interface returns an enumerated value indicating the status of the font, one of "unloaded", "loading", "loaded", or "error".
|
|
3997
3997
|
*
|
|
3998
3998
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status)
|
|
3999
3999
|
*/
|
|
@@ -4029,7 +4029,7 @@ interface FontFace {
|
|
|
4029
4029
|
*/
|
|
4030
4030
|
weight: string;
|
|
4031
4031
|
/**
|
|
4032
|
-
* The **`load()`** method of the FontFace interface requests and loads a font whose
|
|
4032
|
+
* The **`load()`** method of the FontFace interface requests and loads a font whose source was specified as a URL. It returns a Promise that resolves with the current FontFace object.
|
|
4033
4033
|
*
|
|
4034
4034
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load)
|
|
4035
4035
|
*/
|
|
@@ -4060,7 +4060,7 @@ interface FontFaceSet extends EventTarget {
|
|
|
4060
4060
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
|
|
4061
4061
|
onloadingerror: ((this: FontFaceSet, ev: FontFaceSetLoadEvent) => any) | null;
|
|
4062
4062
|
/**
|
|
4063
|
-
* The
|
|
4063
|
+
* The **`ready`** read-only property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet.
|
|
4064
4064
|
*
|
|
4065
4065
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready)
|
|
4066
4066
|
*/
|
|
@@ -4072,13 +4072,13 @@ interface FontFaceSet extends EventTarget {
|
|
|
4072
4072
|
*/
|
|
4073
4073
|
readonly status: FontFaceSetLoadStatus;
|
|
4074
4074
|
/**
|
|
4075
|
-
* The
|
|
4075
|
+
* The **`check()`** method of the FontFaceSet returns true if you can render some text using the given font specification without attempting to use any fonts in this FontFaceSet that are not yet fully loaded. This means you can use the font specification without causing a font swap.
|
|
4076
4076
|
*
|
|
4077
4077
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
|
|
4078
4078
|
*/
|
|
4079
4079
|
check(font: string, text?: string): boolean;
|
|
4080
4080
|
/**
|
|
4081
|
-
* The
|
|
4081
|
+
* The **`load()`** method of the FontFaceSet forces all the fonts given in parameters to be loaded.
|
|
4082
4082
|
*
|
|
4083
4083
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)
|
|
4084
4084
|
*/
|
|
@@ -4120,13 +4120,13 @@ interface FontFaceSource {
|
|
|
4120
4120
|
}
|
|
4121
4121
|
|
|
4122
4122
|
/**
|
|
4123
|
-
* The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the
|
|
4123
|
+
* The **`FormData`** interface provides a way to construct a set of key/value pairs representing form fields and their values, which can be sent using the fetch(), XMLHttpRequest.send() or navigator.sendBeacon() methods. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
|
|
4124
4124
|
*
|
|
4125
4125
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
|
|
4126
4126
|
*/
|
|
4127
4127
|
interface FormData {
|
|
4128
4128
|
/**
|
|
4129
|
-
* The **`append()`** method of the FormData interface appends a new value onto an existing key inside a
|
|
4129
|
+
* The **`append()`** method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.
|
|
4130
4130
|
*
|
|
4131
4131
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append)
|
|
4132
4132
|
*/
|
|
@@ -4134,31 +4134,31 @@ interface FormData {
|
|
|
4134
4134
|
append(name: string, value: string): void;
|
|
4135
4135
|
append(name: string, blobValue: Blob, filename?: string): void;
|
|
4136
4136
|
/**
|
|
4137
|
-
* The **`delete()`** method of the FormData interface deletes a key and its value(s) from a
|
|
4137
|
+
* The **`delete()`** method of the FormData interface deletes a key and its value(s) from a FormData object.
|
|
4138
4138
|
*
|
|
4139
4139
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete)
|
|
4140
4140
|
*/
|
|
4141
4141
|
delete(name: string): void;
|
|
4142
4142
|
/**
|
|
4143
|
-
* The **`get()`** method of the FormData interface returns the first value associated with a given key from within a
|
|
4143
|
+
* The **`get()`** method of the FormData interface returns the first value associated with a given key from within a FormData object. If you expect multiple values and want all of them, use the getAll() method instead.
|
|
4144
4144
|
*
|
|
4145
4145
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get)
|
|
4146
4146
|
*/
|
|
4147
4147
|
get(name: string): FormDataEntryValue | null;
|
|
4148
4148
|
/**
|
|
4149
|
-
* The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a
|
|
4149
|
+
* The **`getAll()`** method of the FormData interface returns all the values associated with a given key from within a FormData object.
|
|
4150
4150
|
*
|
|
4151
4151
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll)
|
|
4152
4152
|
*/
|
|
4153
4153
|
getAll(name: string): FormDataEntryValue[];
|
|
4154
4154
|
/**
|
|
4155
|
-
* The **`has()`** method of the FormData interface returns whether a
|
|
4155
|
+
* The **`has()`** method of the FormData interface returns whether a FormData object contains a certain key.
|
|
4156
4156
|
*
|
|
4157
4157
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has)
|
|
4158
4158
|
*/
|
|
4159
4159
|
has(name: string): boolean;
|
|
4160
4160
|
/**
|
|
4161
|
-
* The **`set()`** method of the FormData interface sets a new value for an existing key inside a
|
|
4161
|
+
* The **`set()`** method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.
|
|
4162
4162
|
*
|
|
4163
4163
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set)
|
|
4164
4164
|
*/
|
|
@@ -4174,7 +4174,7 @@ declare var FormData: {
|
|
|
4174
4174
|
};
|
|
4175
4175
|
|
|
4176
4176
|
/**
|
|
4177
|
-
* The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the
|
|
4177
|
+
* The **`GPUError`** interface of the WebGPU API is the base interface for errors surfaced by GPUDevice.popErrorScope and the uncapturederror event.
|
|
4178
4178
|
* Available only in secure contexts.
|
|
4179
4179
|
*
|
|
4180
4180
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUError)
|
|
@@ -4194,7 +4194,7 @@ declare var GPUError: {
|
|
|
4194
4194
|
};
|
|
4195
4195
|
|
|
4196
4196
|
/**
|
|
4197
|
-
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure.
|
|
4197
|
+
* The **`GPUPipelineError`** interface of the WebGPU API describes a pipeline failure. This is the value received when a Promise returned by a GPUDevice.createComputePipelineAsync() or GPUDevice.createRenderPipelineAsync() call rejects.
|
|
4198
4198
|
* Available only in secure contexts.
|
|
4199
4199
|
*
|
|
4200
4200
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GPUPipelineError)
|
|
@@ -4221,43 +4221,43 @@ interface GenericTransformStream {
|
|
|
4221
4221
|
}
|
|
4222
4222
|
|
|
4223
4223
|
/**
|
|
4224
|
-
* The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers.
|
|
4224
|
+
* The **`Headers`** interface of the Fetch API allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing headers from the list of the request's headers.
|
|
4225
4225
|
*
|
|
4226
4226
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
|
|
4227
4227
|
*/
|
|
4228
4228
|
interface Headers {
|
|
4229
4229
|
/**
|
|
4230
|
-
* The **`append()`** method of the Headers interface appends a new value onto an existing header inside a
|
|
4230
|
+
* The **`append()`** method of the Headers interface appends a new value onto an existing header inside a Headers object, or adds the header if it does not already exist.
|
|
4231
4231
|
*
|
|
4232
4232
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append)
|
|
4233
4233
|
*/
|
|
4234
4234
|
append(name: string, value: string): void;
|
|
4235
4235
|
/**
|
|
4236
|
-
* The **`delete()`** method of the Headers interface deletes a header from the current
|
|
4236
|
+
* The **`delete()`** method of the Headers interface deletes a header from the current Headers object.
|
|
4237
4237
|
*
|
|
4238
4238
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete)
|
|
4239
4239
|
*/
|
|
4240
4240
|
delete(name: string): void;
|
|
4241
4241
|
/**
|
|
4242
|
-
* The **`get()`** method of the Headers interface returns a byte string of all the values of a header within a
|
|
4242
|
+
* The **`get()`** method of the Headers interface returns a byte string of all the values of a header within a Headers object with a given name. If the requested header doesn't exist in the Headers object, it returns null.
|
|
4243
4243
|
*
|
|
4244
4244
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get)
|
|
4245
4245
|
*/
|
|
4246
4246
|
get(name: string): string | null;
|
|
4247
4247
|
/**
|
|
4248
|
-
* The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response.
|
|
4248
|
+
* The **`getSetCookie()`** method of the Headers interface returns an array containing the values of all Set-Cookie headers associated with a response. This allows Headers objects to handle having multiple Set-Cookie headers, which wasn't possible prior to its implementation.
|
|
4249
4249
|
*
|
|
4250
4250
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)
|
|
4251
4251
|
*/
|
|
4252
4252
|
getSetCookie(): string[];
|
|
4253
4253
|
/**
|
|
4254
|
-
* The **`has()`** method of the Headers interface returns a boolean stating whether a
|
|
4254
|
+
* The **`has()`** method of the Headers interface returns a boolean stating whether a Headers object contains a certain header.
|
|
4255
4255
|
*
|
|
4256
4256
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has)
|
|
4257
4257
|
*/
|
|
4258
4258
|
has(name: string): boolean;
|
|
4259
4259
|
/**
|
|
4260
|
-
* The **`set()`** method of the Headers interface sets a new value for an existing header inside a
|
|
4260
|
+
* The **`set()`** method of the Headers interface sets a new value for an existing header inside a Headers object, or adds the header if it does not already exist.
|
|
4261
4261
|
*
|
|
4262
4262
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set)
|
|
4263
4263
|
*/
|
|
@@ -4277,19 +4277,19 @@ declare var Headers: {
|
|
|
4277
4277
|
*/
|
|
4278
4278
|
interface IDBCursor {
|
|
4279
4279
|
/**
|
|
4280
|
-
* The **`direction`** read-only property of the IDBCursor interface is a string that returns the direction of traversal of the cursor (set using IDBObjectStore.openCursor for example).
|
|
4280
|
+
* The **`direction`** read-only property of the IDBCursor interface is a string that returns the direction of traversal of the cursor (set using IDBObjectStore.openCursor for example). See the Value section below for possible values.
|
|
4281
4281
|
*
|
|
4282
4282
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
|
|
4283
4283
|
*/
|
|
4284
4284
|
readonly direction: IDBCursorDirection;
|
|
4285
4285
|
/**
|
|
4286
|
-
* The **`key`** read-only property of the IDBCursor interface returns the key for the record at the cursor's position.
|
|
4286
|
+
* The **`key`** read-only property of the IDBCursor interface returns the key for the record at the cursor's position. If the cursor is outside its range, this is set to undefined. The cursor's key can be any data type.
|
|
4287
4287
|
*
|
|
4288
4288
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
|
|
4289
4289
|
*/
|
|
4290
4290
|
readonly key: IDBValidKey;
|
|
4291
4291
|
/**
|
|
4292
|
-
* The **`primaryKey`** read-only property of the IDBCursor interface returns the cursor's current effective key.
|
|
4292
|
+
* The **`primaryKey`** read-only property of the IDBCursor interface returns the cursor's current effective key. If the cursor is currently being iterated or has iterated outside its range, this is set to undefined. The cursor's primary key can be any data type.
|
|
4293
4293
|
*
|
|
4294
4294
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
|
|
4295
4295
|
*/
|
|
@@ -4301,7 +4301,7 @@ interface IDBCursor {
|
|
|
4301
4301
|
*/
|
|
4302
4302
|
readonly request: IDBRequest;
|
|
4303
4303
|
/**
|
|
4304
|
-
* The **`source`** read-only property of the IDBCursor interface returns the IDBObjectStore or IDBIndex that the cursor is iterating over.
|
|
4304
|
+
* The **`source`** read-only property of the IDBCursor interface returns the IDBObjectStore or IDBIndex that the cursor is iterating over. This function never returns null or throws an exception, even if the cursor is currently being iterated, has iterated past its end, or its transaction is not active.
|
|
4305
4305
|
*
|
|
4306
4306
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
|
|
4307
4307
|
*/
|
|
@@ -4313,7 +4313,7 @@ interface IDBCursor {
|
|
|
4313
4313
|
*/
|
|
4314
4314
|
advance(count: number): void;
|
|
4315
4315
|
/**
|
|
4316
|
-
* The **`continue()`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter.
|
|
4316
|
+
* The **`continue()`** method of the IDBCursor interface advances the cursor to the next position along its direction, to the item whose key matches the optional key parameter. If no key is specified, the cursor advances to the immediate next position, based on its direction.
|
|
4317
4317
|
*
|
|
4318
4318
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
|
|
4319
4319
|
*/
|
|
@@ -4325,13 +4325,13 @@ interface IDBCursor {
|
|
|
4325
4325
|
*/
|
|
4326
4326
|
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
|
|
4327
4327
|
/**
|
|
4328
|
-
* The **`delete()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position.
|
|
4328
|
+
* The **`delete()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, deletes the record at the cursor's position, without changing the cursor's position. Once the record is deleted, the cursor's value is set to null.
|
|
4329
4329
|
*
|
|
4330
4330
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
|
|
4331
4331
|
*/
|
|
4332
4332
|
delete(): IDBRequest<undefined>;
|
|
4333
4333
|
/**
|
|
4334
|
-
* The **`update()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store.
|
|
4334
|
+
* The **`update()`** method of the IDBCursor interface returns an IDBRequest object, and, in a separate thread, updates the value at the current position of the cursor in the object store. If the cursor points to a record that has just been deleted, a new record is created.
|
|
4335
4335
|
*
|
|
4336
4336
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
|
|
4337
4337
|
*/
|
|
@@ -4344,7 +4344,7 @@ declare var IDBCursor: {
|
|
|
4344
4344
|
};
|
|
4345
4345
|
|
|
4346
4346
|
/**
|
|
4347
|
-
* The **`IDBCursorWithValue`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database.
|
|
4347
|
+
* The **`IDBCursorWithValue`** interface of the IndexedDB API represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.
|
|
4348
4348
|
*
|
|
4349
4349
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
|
|
4350
4350
|
*/
|
|
@@ -4370,13 +4370,13 @@ interface IDBDatabaseEventMap {
|
|
|
4370
4370
|
}
|
|
4371
4371
|
|
|
4372
4372
|
/**
|
|
4373
|
-
* The **`IDBDatabase`** interface of the IndexedDB API provides a connection to a database; you can use an
|
|
4373
|
+
* The **`IDBDatabase`** interface of the IndexedDB API provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.
|
|
4374
4374
|
*
|
|
4375
4375
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
|
|
4376
4376
|
*/
|
|
4377
4377
|
interface IDBDatabase extends EventTarget {
|
|
4378
4378
|
/**
|
|
4379
|
-
* The **`name`** read-only property of the
|
|
4379
|
+
* The **`name`** read-only property of the IDBDatabase interface is a string that contains the name of the connected database.
|
|
4380
4380
|
*
|
|
4381
4381
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
|
|
4382
4382
|
*/
|
|
@@ -4395,7 +4395,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
4395
4395
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
|
|
4396
4396
|
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
4397
4397
|
/**
|
|
4398
|
-
* The **`version`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database.
|
|
4398
|
+
* The **`version`** property of the IDBDatabase interface is a 64-bit integer that contains the version of the connected database. When a database is first created, this attribute is an empty string.
|
|
4399
4399
|
*
|
|
4400
4400
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
|
|
4401
4401
|
*/
|
|
@@ -4436,7 +4436,7 @@ declare var IDBDatabase: {
|
|
|
4436
4436
|
};
|
|
4437
4437
|
|
|
4438
4438
|
/**
|
|
4439
|
-
* The **`IDBFactory`** interface of the IndexedDB API lets applications asynchronously access the indexed databases.
|
|
4439
|
+
* The **`IDBFactory`** interface of the IndexedDB API lets applications asynchronously access the indexed databases. The object that implements the interface is window.indexedDB. You open — that is, create and access — and delete a database with this object, and not directly with IDBFactory.
|
|
4440
4440
|
*
|
|
4441
4441
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
|
|
4442
4442
|
*/
|
|
@@ -4454,7 +4454,7 @@ interface IDBFactory {
|
|
|
4454
4454
|
*/
|
|
4455
4455
|
databases(): Promise<IDBDatabaseInfo[]>;
|
|
4456
4456
|
/**
|
|
4457
|
-
* The **`deleteDatabase()`** method of the IDBFactory interface requests the deletion of a database.
|
|
4457
|
+
* The **`deleteDatabase()`** method of the IDBFactory interface requests the deletion of a database. The method returns an IDBOpenDBRequest object immediately, and performs the deletion operation asynchronously.
|
|
4458
4458
|
*
|
|
4459
4459
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
|
|
4460
4460
|
*/
|
|
@@ -4473,13 +4473,13 @@ declare var IDBFactory: {
|
|
|
4473
4473
|
};
|
|
4474
4474
|
|
|
4475
4475
|
/**
|
|
4476
|
-
*
|
|
4476
|
+
* **`IDBIndex`** interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.
|
|
4477
4477
|
*
|
|
4478
4478
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
|
|
4479
4479
|
*/
|
|
4480
4480
|
interface IDBIndex {
|
|
4481
4481
|
/**
|
|
4482
|
-
* The **`keyPath`** property of the IDBIndex interface returns the key path of the current index.
|
|
4482
|
+
* The **`keyPath`** property of the IDBIndex interface returns the key path of the current index. If null, this index is not auto-populated.
|
|
4483
4483
|
*
|
|
4484
4484
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath)
|
|
4485
4485
|
*/
|
|
@@ -4515,7 +4515,7 @@ interface IDBIndex {
|
|
|
4515
4515
|
*/
|
|
4516
4516
|
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
4517
4517
|
/**
|
|
4518
|
-
* The **`get()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if
|
|
4518
|
+
* The **`get()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the value in the referenced object store that corresponds to the given key or the first corresponding value, if key is set to an IDBKeyRange.
|
|
4519
4519
|
*
|
|
4520
4520
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
|
|
4521
4521
|
*/
|
|
@@ -4527,13 +4527,13 @@ interface IDBIndex {
|
|
|
4527
4527
|
*/
|
|
4528
4528
|
getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
4529
4529
|
/**
|
|
4530
|
-
* The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the
|
|
4530
|
+
* The **`getAllKeys()`** method of the IDBIndex interface asynchronously retrieves the primary keys of all objects inside the index, setting them as the result of the request object.
|
|
4531
4531
|
*
|
|
4532
4532
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
|
|
4533
4533
|
*/
|
|
4534
4534
|
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
4535
4535
|
/**
|
|
4536
|
-
* The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if
|
|
4536
|
+
* The **`getKey()`** method of the IDBIndex interface returns an IDBRequest object, and, in a separate thread, finds either the primary key that corresponds to the given key in this index or the first corresponding primary key, if key is set to an IDBKeyRange.
|
|
4537
4537
|
*
|
|
4538
4538
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
|
|
4539
4539
|
*/
|
|
@@ -4558,7 +4558,7 @@ declare var IDBIndex: {
|
|
|
4558
4558
|
};
|
|
4559
4559
|
|
|
4560
4560
|
/**
|
|
4561
|
-
* The **`IDBKeyRange`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys.
|
|
4561
|
+
* The **`IDBKeyRange`** interface of the IndexedDB API represents a continuous interval over some data type that is used for keys. Records can be retrieved from IDBObjectStore and IDBIndex objects using keys or a range of keys. You can limit the range using lower and upper bounds. For example, you can iterate over all values of a key in the value range A–Z.
|
|
4562
4562
|
*
|
|
4563
4563
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
|
|
4564
4564
|
*/
|
|
@@ -4588,7 +4588,7 @@ interface IDBKeyRange {
|
|
|
4588
4588
|
*/
|
|
4589
4589
|
readonly upperOpen: boolean;
|
|
4590
4590
|
/**
|
|
4591
|
-
* The
|
|
4591
|
+
* The **`includes()`** method of the IDBKeyRange interface returns a boolean indicating whether a specified key is inside the key range.
|
|
4592
4592
|
*
|
|
4593
4593
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
|
|
4594
4594
|
*/
|
|
@@ -4599,13 +4599,13 @@ declare var IDBKeyRange: {
|
|
|
4599
4599
|
prototype: IDBKeyRange;
|
|
4600
4600
|
new(): IDBKeyRange;
|
|
4601
4601
|
/**
|
|
4602
|
-
* The **`bound()`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds.
|
|
4602
|
+
* The **`bound()`** static method of the IDBKeyRange interface creates a new key range with the specified upper and lower bounds. The bounds can be open (that is, the bounds exclude the endpoint values) or closed (that is, the bounds include the endpoint values). By default, the bounds are closed.
|
|
4603
4603
|
*
|
|
4604
4604
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
|
|
4605
4605
|
*/
|
|
4606
4606
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
4607
4607
|
/**
|
|
4608
|
-
* The **`lowerBound()`** static method of the IDBKeyRange interface creates a new key range with only a lower bound.
|
|
4608
|
+
* The **`lowerBound()`** static method of the IDBKeyRange interface creates a new key range with only a lower bound. By default, it includes the lower endpoint value and is closed.
|
|
4609
4609
|
*
|
|
4610
4610
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
|
|
4611
4611
|
*/
|
|
@@ -4617,7 +4617,7 @@ declare var IDBKeyRange: {
|
|
|
4617
4617
|
*/
|
|
4618
4618
|
only(value: any): IDBKeyRange;
|
|
4619
4619
|
/**
|
|
4620
|
-
* The **`upperBound()`** static method of the IDBKeyRange interface creates a new upper-bound key range.
|
|
4620
|
+
* The **`upperBound()`** static method of the IDBKeyRange interface creates a new upper-bound key range. By default, it includes the upper endpoint value and is closed.
|
|
4621
4621
|
*
|
|
4622
4622
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
|
|
4623
4623
|
*/
|
|
@@ -4625,7 +4625,7 @@ declare var IDBKeyRange: {
|
|
|
4625
4625
|
};
|
|
4626
4626
|
|
|
4627
4627
|
/**
|
|
4628
|
-
* The **`IDBObjectStore`** interface of the IndexedDB API represents an object store in a database.
|
|
4628
|
+
* The **`IDBObjectStore`** interface of the IndexedDB API represents an object store in a database. Records within an object store are sorted according to their keys. This sorting enables fast insertion, look-up, and ordered retrieval.
|
|
4629
4629
|
*
|
|
4630
4630
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
|
|
4631
4631
|
*/
|
|
@@ -4661,25 +4661,25 @@ interface IDBObjectStore {
|
|
|
4661
4661
|
*/
|
|
4662
4662
|
readonly transaction: IDBTransaction;
|
|
4663
4663
|
/**
|
|
4664
|
-
* The **`add()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store.
|
|
4664
|
+
* The **`add()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, creates a structured clone of the value, and stores the cloned value in the object store. This is for adding new records to an object store.
|
|
4665
4665
|
*
|
|
4666
4666
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
|
|
4667
4667
|
*/
|
|
4668
4668
|
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
|
|
4669
4669
|
/**
|
|
4670
|
-
* The **`clear()`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread.
|
|
4670
|
+
* The **`clear()`** method of the IDBObjectStore interface creates and immediately returns an IDBRequest object, and clears this object store in a separate thread. This is for deleting all the current data out of an object store.
|
|
4671
4671
|
*
|
|
4672
4672
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
|
|
4673
4673
|
*/
|
|
4674
4674
|
clear(): IDBRequest<undefined>;
|
|
4675
4675
|
/**
|
|
4676
|
-
* The **`count()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or IDBKeyRange.
|
|
4676
|
+
* The **`count()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the total number of records that match the provided key or IDBKeyRange. If no arguments are provided, it returns the total number of records in the store.
|
|
4677
4677
|
*
|
|
4678
4678
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
|
|
4679
4679
|
*/
|
|
4680
4680
|
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
|
|
4681
4681
|
/**
|
|
4682
|
-
* The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database.
|
|
4682
|
+
* The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database. It creates a new field/column defining a new data point for each database record to contain.
|
|
4683
4683
|
*
|
|
4684
4684
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
4685
4685
|
*/
|
|
@@ -4697,7 +4697,7 @@ interface IDBObjectStore {
|
|
|
4697
4697
|
*/
|
|
4698
4698
|
deleteIndex(name: string): void;
|
|
4699
4699
|
/**
|
|
4700
|
-
* The **`get()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key.
|
|
4700
|
+
* The **`get()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the object selected by the specified key. This is for retrieving specific records from an object store.
|
|
4701
4701
|
*
|
|
4702
4702
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
|
|
4703
4703
|
*/
|
|
@@ -4709,13 +4709,13 @@ interface IDBObjectStore {
|
|
|
4709
4709
|
*/
|
|
4710
4710
|
getAll(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
|
|
4711
4711
|
/**
|
|
4712
|
-
* The
|
|
4712
|
+
* The **`getAllKeys()`** method of the IDBObjectStore interface returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.
|
|
4713
4713
|
*
|
|
4714
4714
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
|
|
4715
4715
|
*/
|
|
4716
4716
|
getAllKeys(queryOrOptions?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
|
|
4717
4717
|
/**
|
|
4718
|
-
* The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.
|
|
4718
|
+
* The **`getKey()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.
|
|
4719
4719
|
*
|
|
4720
4720
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
|
|
4721
4721
|
*/
|
|
@@ -4727,13 +4727,13 @@ interface IDBObjectStore {
|
|
|
4727
4727
|
*/
|
|
4728
4728
|
index(name: string): IDBIndex;
|
|
4729
4729
|
/**
|
|
4730
|
-
* The **`openCursor()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns a new IDBCursorWithValue object.
|
|
4730
|
+
* The **`openCursor()`** method of the IDBObjectStore interface returns an IDBRequest object, and, in a separate thread, returns a new IDBCursorWithValue object. Used for iterating through an object store with a cursor.
|
|
4731
4731
|
*
|
|
4732
4732
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
|
|
4733
4733
|
*/
|
|
4734
4734
|
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
|
|
4735
4735
|
/**
|
|
4736
|
-
* The **`openKeyCursor()`** method of the IDBObjectStore interface returns an IDBRequest object whose result will be set to an IDBCursor that can be used to iterate through matching results.
|
|
4736
|
+
* The **`openKeyCursor()`** method of the IDBObjectStore interface returns an IDBRequest object whose result will be set to an IDBCursor that can be used to iterate through matching results. Used for iterating through the keys of an object store with a cursor.
|
|
4737
4737
|
*
|
|
4738
4738
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
|
|
4739
4739
|
*/
|
|
@@ -4783,7 +4783,7 @@ interface IDBRequestEventMap {
|
|
|
4783
4783
|
}
|
|
4784
4784
|
|
|
4785
4785
|
/**
|
|
4786
|
-
* The **`IDBRequest`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes.
|
|
4786
|
+
* The **`IDBRequest`** interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes. Each reading and writing operation on a database is done using a request.
|
|
4787
4787
|
*
|
|
4788
4788
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
|
|
4789
4789
|
*/
|
|
@@ -4811,7 +4811,7 @@ interface IDBRequest<T = any> extends EventTarget {
|
|
|
4811
4811
|
*/
|
|
4812
4812
|
readonly result: T;
|
|
4813
4813
|
/**
|
|
4814
|
-
* The **`source`** read-only property of the IDBRequest interface returns the source of the request, such as an Index or an object store.
|
|
4814
|
+
* The **`source`** read-only property of the IDBRequest interface returns the source of the request, such as an Index or an object store. If no source exists (such as when calling IDBFactory.open), it returns null.
|
|
4815
4815
|
*
|
|
4816
4816
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
|
|
4817
4817
|
*/
|
|
@@ -4840,7 +4840,7 @@ interface IDBTransactionEventMap {
|
|
|
4840
4840
|
}
|
|
4841
4841
|
|
|
4842
4842
|
/**
|
|
4843
|
-
* The **`IDBTransaction`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes.
|
|
4843
|
+
* The **`IDBTransaction`** interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes. All reading and writing of data is done within transactions. You use IDBDatabase to start transactions, IDBTransaction to set the mode of the transaction (e.g., is it readonly or readwrite), and you access an IDBObjectStore to make a request. You can also use an IDBTransaction object to abort transactions.
|
|
4844
4844
|
*
|
|
4845
4845
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction)
|
|
4846
4846
|
*/
|
|
@@ -4852,7 +4852,7 @@ interface IDBTransaction extends EventTarget {
|
|
|
4852
4852
|
*/
|
|
4853
4853
|
readonly db: IDBDatabase;
|
|
4854
4854
|
/**
|
|
4855
|
-
* The **`durability`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with.
|
|
4855
|
+
* The **`durability`** read-only property of the IDBTransaction interface returns the durability hint the transaction was created with. This is a hint to the user agent of whether to prioritize performance or durability when committing the transaction.
|
|
4856
4856
|
*
|
|
4857
4857
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability)
|
|
4858
4858
|
*/
|
|
@@ -4864,7 +4864,7 @@ interface IDBTransaction extends EventTarget {
|
|
|
4864
4864
|
*/
|
|
4865
4865
|
readonly error: DOMException | null;
|
|
4866
4866
|
/**
|
|
4867
|
-
* The **`mode`** read-only property of the IDBTransaction interface returns the current mode for accessing the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is
|
|
4867
|
+
* The **`mode`** read-only property of the IDBTransaction interface returns the current mode for accessing the data in the object stores in the scope of the transaction (i.e., is the mode to be read-only, or do you want to write to the object stores?) The default value is readonly.
|
|
4868
4868
|
*
|
|
4869
4869
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
|
|
4870
4870
|
*/
|
|
@@ -4911,7 +4911,7 @@ declare var IDBTransaction: {
|
|
|
4911
4911
|
};
|
|
4912
4912
|
|
|
4913
4913
|
/**
|
|
4914
|
-
* The **`IDBVersionChangeEvent`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an
|
|
4914
|
+
* The **`IDBVersionChangeEvent`** interface of the IndexedDB API indicates that the version of the database has changed, as the result of an onupgradeneeded event handler function.
|
|
4915
4915
|
*
|
|
4916
4916
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
|
|
4917
4917
|
*/
|
|
@@ -4936,7 +4936,7 @@ declare var IDBVersionChangeEvent: {
|
|
|
4936
4936
|
};
|
|
4937
4937
|
|
|
4938
4938
|
/**
|
|
4939
|
-
* The **`ImageBitmap`** interface represents a bitmap image which can be drawn to a canvas without undue latency.
|
|
4939
|
+
* The **`ImageBitmap`** interface represents a bitmap image which can be drawn to a <canvas> without undue latency. It can be created from a variety of source objects using the Window.createImageBitmap() or WorkerGlobalScope.createImageBitmap() factory method. ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL.
|
|
4940
4940
|
*
|
|
4941
4941
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap)
|
|
4942
4942
|
*/
|
|
@@ -4954,7 +4954,7 @@ interface ImageBitmap {
|
|
|
4954
4954
|
*/
|
|
4955
4955
|
readonly width: number;
|
|
4956
4956
|
/**
|
|
4957
|
-
* The **`ImageBitmap.close()`** method disposes of all graphical resources associated with an
|
|
4957
|
+
* The **`ImageBitmap.close()`** method disposes of all graphical resources associated with an ImageBitmap.
|
|
4958
4958
|
*
|
|
4959
4959
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
|
|
4960
4960
|
*/
|
|
@@ -4967,13 +4967,13 @@ declare var ImageBitmap: {
|
|
|
4967
4967
|
};
|
|
4968
4968
|
|
|
4969
4969
|
/**
|
|
4970
|
-
* The **`ImageBitmapRenderingContext`** interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap.
|
|
4970
|
+
* The **`ImageBitmapRenderingContext`** interface is a canvas rendering context that provides the functionality to replace the canvas's contents with the given ImageBitmap. Its context id (the first argument to HTMLCanvasElement.getContext() or OffscreenCanvas.getContext()) is "bitmaprenderer".
|
|
4971
4971
|
*
|
|
4972
4972
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)
|
|
4973
4973
|
*/
|
|
4974
4974
|
interface ImageBitmapRenderingContext {
|
|
4975
4975
|
/**
|
|
4976
|
-
* The **`ImageBitmapRenderingContext.transferFromImageBitmap()`** method displays the given ImageBitmap in the canvas associated with this rendering context.
|
|
4976
|
+
* The **`ImageBitmapRenderingContext.transferFromImageBitmap()`** method displays the given ImageBitmap in the canvas associated with this rendering context. The ownership of the ImageBitmap is transferred to the canvas as well.
|
|
4977
4977
|
*
|
|
4978
4978
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
|
|
4979
4979
|
*/
|
|
@@ -4986,7 +4986,7 @@ declare var ImageBitmapRenderingContext: {
|
|
|
4986
4986
|
};
|
|
4987
4987
|
|
|
4988
4988
|
/**
|
|
4989
|
-
* The **`ImageData`** interface represents the underlying pixel data of an area of a canvas element.
|
|
4989
|
+
* The **`ImageData`** interface represents the underlying pixel data of an area of a <canvas> element.
|
|
4990
4990
|
*
|
|
4991
4991
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
|
|
4992
4992
|
*/
|
|
@@ -4998,7 +4998,7 @@ interface ImageData {
|
|
|
4998
4998
|
*/
|
|
4999
4999
|
readonly colorSpace: PredefinedColorSpace;
|
|
5000
5000
|
/**
|
|
5001
|
-
* The readonly **`ImageData.data`** property returns a Uint8ClampedArray or Float16Array that contains the ImageData object's pixel data.
|
|
5001
|
+
* The readonly **`ImageData.data`** property returns a Uint8ClampedArray or Float16Array that contains the ImageData object's pixel data. Data is stored as a one-dimensional array in the RGBA order.
|
|
5002
5002
|
*
|
|
5003
5003
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
|
|
5004
5004
|
*/
|
|
@@ -5029,7 +5029,7 @@ interface ImportMeta {
|
|
|
5029
5029
|
}
|
|
5030
5030
|
|
|
5031
5031
|
/**
|
|
5032
|
-
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (
|
|
5032
|
+
* The **`KHR_parallel_shader_compile`** extension is part of the WebGL API and enables a non-blocking poll operation, so that compile/link status availability (COMPLETION_STATUS_KHR) can be queried without potentially incurring stalls. In other words you can check the status of your shaders compiling without blocking the runtime.
|
|
5033
5033
|
*
|
|
5034
5034
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile)
|
|
5035
5035
|
*/
|
|
@@ -5038,20 +5038,20 @@ interface KHR_parallel_shader_compile {
|
|
|
5038
5038
|
}
|
|
5039
5039
|
|
|
5040
5040
|
/**
|
|
5041
|
-
* The **`Lock`** interface of the Web Locks API provides the name and mode of a lock.
|
|
5041
|
+
* The **`Lock`** interface of the Web Locks API provides the name and mode of a lock. This may be a newly requested lock that is received in the callback to LockManager.request(), or a record of an active or queued lock returned by LockManager.query().
|
|
5042
5042
|
* Available only in secure contexts.
|
|
5043
5043
|
*
|
|
5044
5044
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
|
|
5045
5045
|
*/
|
|
5046
5046
|
interface Lock {
|
|
5047
5047
|
/**
|
|
5048
|
-
* The **`mode`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.
|
|
5048
|
+
* The **`mode`** read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested. The mode is either "exclusive" (the default) or "shared".
|
|
5049
5049
|
*
|
|
5050
5050
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode)
|
|
5051
5051
|
*/
|
|
5052
5052
|
readonly mode: LockMode;
|
|
5053
5053
|
/**
|
|
5054
|
-
* The **`name`** read-only property of the Lock interface returns the
|
|
5054
|
+
* The **`name`** read-only property of the Lock interface returns the name passed to LockManager.request selected when the lock was requested.
|
|
5055
5055
|
*
|
|
5056
5056
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name)
|
|
5057
5057
|
*/
|
|
@@ -5064,7 +5064,7 @@ declare var Lock: {
|
|
|
5064
5064
|
};
|
|
5065
5065
|
|
|
5066
5066
|
/**
|
|
5067
|
-
* The **`LockManager`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing
|
|
5067
|
+
* The **`LockManager`** interface of the Web Locks API provides methods for requesting a new Lock object and querying for an existing Lock object. To get an instance of LockManager, call navigator.locks.
|
|
5068
5068
|
* Available only in secure contexts.
|
|
5069
5069
|
*
|
|
5070
5070
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
|
|
@@ -5077,7 +5077,7 @@ interface LockManager {
|
|
|
5077
5077
|
*/
|
|
5078
5078
|
query(): Promise<LockManagerSnapshot>;
|
|
5079
5079
|
/**
|
|
5080
|
-
* The **`request()`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics.
|
|
5080
|
+
* The **`request()`** method of the LockManager interface requests a Lock object with parameters specifying its name and characteristics. The requested Lock is passed to a callback, while the function itself returns a Promise that resolves (or rejects) with the result of the callback after the lock is released, or rejects if the request is aborted.
|
|
5081
5081
|
*
|
|
5082
5082
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request)
|
|
5083
5083
|
*/
|
|
@@ -5091,7 +5091,7 @@ declare var LockManager: {
|
|
|
5091
5091
|
};
|
|
5092
5092
|
|
|
5093
5093
|
/**
|
|
5094
|
-
* The **`MediaCapabilities`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser.
|
|
5094
|
+
* The **`MediaCapabilities`** interface of the Media Capabilities API provides information about the decoding abilities of the device, system and browser. The API can be used to query the browser about the decoding abilities of the device based on codecs, profile, resolution, and bitrates. The information can be used to serve optimal media streams to the user and determine if playback should be smooth and power efficient.
|
|
5095
5095
|
*
|
|
5096
5096
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities)
|
|
5097
5097
|
*/
|
|
@@ -5103,7 +5103,7 @@ interface MediaCapabilities {
|
|
|
5103
5103
|
*/
|
|
5104
5104
|
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
5105
5105
|
/**
|
|
5106
|
-
* The **`encodingInfo()`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media.
|
|
5106
|
+
* The **`encodingInfo()`** method of the MediaCapabilities interface returns a promise that fulfills with the tested media configuration's capabilities for encoding media. This contains the three boolean properties supported, smooth, and powerefficient, which describe how compatible the device is with the type of media.
|
|
5107
5107
|
*
|
|
5108
5108
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo)
|
|
5109
5109
|
*/
|
|
@@ -5171,7 +5171,7 @@ interface MessageEvent<T = any> extends Event {
|
|
|
5171
5171
|
*/
|
|
5172
5172
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
5173
5173
|
/**
|
|
5174
|
-
* The **`source`** read-only property of the MessageEvent interface is a
|
|
5174
|
+
* The **`source`** read-only property of the MessageEvent interface is a MessageEventSource (which can be a WindowProxy, MessagePort, or ServiceWorker object) representing the message emitter.
|
|
5175
5175
|
*
|
|
5176
5176
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
|
|
5177
5177
|
*/
|
|
@@ -5213,7 +5213,7 @@ interface MessagePortEventMap extends MessageEventTargetEventMap {
|
|
|
5213
5213
|
*/
|
|
5214
5214
|
interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
|
|
5215
5215
|
/**
|
|
5216
|
-
* The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active.
|
|
5216
|
+
* The **`close()`** method of the MessagePort interface disconnects the port, so it is no longer active. This stops the flow of messages to that port.
|
|
5217
5217
|
*
|
|
5218
5218
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
|
|
5219
5219
|
*/
|
|
@@ -5226,7 +5226,7 @@ interface MessagePort extends EventTarget, MessageEventTarget<MessagePort> {
|
|
|
5226
5226
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
5227
5227
|
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
5228
5228
|
/**
|
|
5229
|
-
* The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port.
|
|
5229
|
+
* The **`start()`** method of the MessagePort interface starts the sending of messages queued on the port. This method is only needed when using EventTarget.addEventListener; it is implied when using onmessage.
|
|
5230
5230
|
*
|
|
5231
5231
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
|
|
5232
5232
|
*/
|
|
@@ -5250,13 +5250,13 @@ declare var MessagePort: {
|
|
|
5250
5250
|
*/
|
|
5251
5251
|
interface NavigationPreloadManager {
|
|
5252
5252
|
/**
|
|
5253
|
-
* The **`disable()`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using
|
|
5253
|
+
* The **`disable()`** method of the NavigationPreloadManager interface halts the automatic preloading of service-worker-managed resources previously started using enable() It returns a promise that resolves with undefined.
|
|
5254
5254
|
*
|
|
5255
5255
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable)
|
|
5256
5256
|
*/
|
|
5257
5257
|
disable(): Promise<void>;
|
|
5258
5258
|
/**
|
|
5259
|
-
* The **`enable()`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker.
|
|
5259
|
+
* The **`enable()`** method of the NavigationPreloadManager interface is used to enable preloading of resources managed by the service worker. It returns a promise that resolves with undefined.
|
|
5260
5260
|
*
|
|
5261
5261
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable)
|
|
5262
5262
|
*/
|
|
@@ -5268,7 +5268,7 @@ interface NavigationPreloadManager {
|
|
|
5268
5268
|
*/
|
|
5269
5269
|
getState(): Promise<NavigationPreloadState>;
|
|
5270
5270
|
/**
|
|
5271
|
-
* The **`setHeaderValue()`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a
|
|
5271
|
+
* The **`setHeaderValue()`** method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a fetch() operation made during service worker navigation preloading. It returns an empty Promise that resolves with undefined.
|
|
5272
5272
|
*
|
|
5273
5273
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue)
|
|
5274
5274
|
*/
|
|
@@ -5346,31 +5346,31 @@ interface NotificationEventMap {
|
|
|
5346
5346
|
*/
|
|
5347
5347
|
interface Notification extends EventTarget {
|
|
5348
5348
|
/**
|
|
5349
|
-
* The **`body`** read-only property of the Notification interface indicates the body string of the notification, as specified in the
|
|
5349
|
+
* The **`body`** read-only property of the Notification interface indicates the body string of the notification, as specified in the body option of the Notification() constructor.
|
|
5350
5350
|
*
|
|
5351
5351
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body)
|
|
5352
5352
|
*/
|
|
5353
5353
|
readonly body: string;
|
|
5354
5354
|
/**
|
|
5355
|
-
* The **`data`** read-only property of the Notification interface returns a structured clone of the notification's data, as specified in the
|
|
5355
|
+
* The **`data`** read-only property of the Notification interface returns a structured clone of the notification's data, as specified in the data option of the Notification() constructor.
|
|
5356
5356
|
*
|
|
5357
5357
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data)
|
|
5358
5358
|
*/
|
|
5359
5359
|
readonly data: any;
|
|
5360
5360
|
/**
|
|
5361
|
-
* The **`dir`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the
|
|
5361
|
+
* The **`dir`** read-only property of the Notification interface indicates the text direction of the notification, as specified in the dir option of the Notification() constructor.
|
|
5362
5362
|
*
|
|
5363
5363
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir)
|
|
5364
5364
|
*/
|
|
5365
5365
|
readonly dir: NotificationDirection;
|
|
5366
5366
|
/**
|
|
5367
|
-
* The **`icon`** read-only property of the Notification interface contains the URL of an icon to be displayed as part of the notification, as specified in the
|
|
5367
|
+
* The **`icon`** read-only property of the Notification interface contains the URL of an icon to be displayed as part of the notification, as specified in the icon option of the Notification() constructor.
|
|
5368
5368
|
*
|
|
5369
5369
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon)
|
|
5370
5370
|
*/
|
|
5371
5371
|
readonly icon: string;
|
|
5372
5372
|
/**
|
|
5373
|
-
* The **`lang`** read-only property of the Notification interface indicates the language used in the notification, as specified in the
|
|
5373
|
+
* The **`lang`** read-only property of the Notification interface indicates the language used in the notification, as specified in the lang option of the Notification() constructor.
|
|
5374
5374
|
*
|
|
5375
5375
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang)
|
|
5376
5376
|
*/
|
|
@@ -5390,19 +5390,19 @@ interface Notification extends EventTarget {
|
|
|
5390
5390
|
*/
|
|
5391
5391
|
readonly requireInteraction: boolean;
|
|
5392
5392
|
/**
|
|
5393
|
-
* The **`silent`** read-only property of the Notification interface specifies whether the notification should be silent, i.e., no sounds or vibrations should be issued regardless of the device settings.
|
|
5393
|
+
* The **`silent`** read-only property of the Notification interface specifies whether the notification should be silent, i.e., no sounds or vibrations should be issued regardless of the device settings. This is controlled via the silent option of the Notification() constructor.
|
|
5394
5394
|
*
|
|
5395
5395
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent)
|
|
5396
5396
|
*/
|
|
5397
5397
|
readonly silent: boolean | null;
|
|
5398
5398
|
/**
|
|
5399
|
-
* The **`tag`** read-only property of the Notification interface signifies an identifying tag for the notification, as specified in the
|
|
5399
|
+
* The **`tag`** read-only property of the Notification interface signifies an identifying tag for the notification, as specified in the tag option of the Notification() constructor.
|
|
5400
5400
|
*
|
|
5401
5401
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag)
|
|
5402
5402
|
*/
|
|
5403
5403
|
readonly tag: string;
|
|
5404
5404
|
/**
|
|
5405
|
-
* The **`title`** read-only property of the Notification interface indicates the title of the notification, as specified in the
|
|
5405
|
+
* The **`title`** read-only property of the Notification interface indicates the title of the notification, as specified in the title parameter of the Notification() constructor.
|
|
5406
5406
|
*
|
|
5407
5407
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title)
|
|
5408
5408
|
*/
|
|
@@ -5437,13 +5437,13 @@ declare var Notification: {
|
|
|
5437
5437
|
*/
|
|
5438
5438
|
interface NotificationEvent extends ExtendableEvent {
|
|
5439
5439
|
/**
|
|
5440
|
-
* The **`action`** read-only property of the NotificationEvent interface returns the string ID of the notification button the user clicked.
|
|
5440
|
+
* The **`action`** read-only property of the NotificationEvent interface returns the string ID of the notification button the user clicked. This value returns an empty string if the user clicked the notification somewhere other than an action button, or the notification does not have a button. The notification id is set during the creation of the Notification via the actions array attribute and can't be modified unless the notification is replaced.
|
|
5441
5441
|
*
|
|
5442
5442
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action)
|
|
5443
5443
|
*/
|
|
5444
5444
|
readonly action: string;
|
|
5445
5445
|
/**
|
|
5446
|
-
* The **`notification`** read-only property of the NotificationEvent interface returns the instance of the Notification that was clicked to fire the event.
|
|
5446
|
+
* The **`notification`** read-only property of the NotificationEvent interface returns the instance of the Notification that was clicked to fire the event. The Notification provides read-only access to many properties that were set at the instantiation time of the Notification such as tag and data attributes that allow you to store information for deferred use in the notificationclick event.
|
|
5447
5447
|
*
|
|
5448
5448
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification)
|
|
5449
5449
|
*/
|
|
@@ -5462,43 +5462,43 @@ declare var NotificationEvent: {
|
|
|
5462
5462
|
*/
|
|
5463
5463
|
interface OES_draw_buffers_indexed {
|
|
5464
5464
|
/**
|
|
5465
|
-
* The
|
|
5465
|
+
* The **`blendEquationSeparateiOES()`** method of the OES_draw_buffers_indexed WebGL extension sets the RGB and alpha blend equations separately for a particular draw buffer.
|
|
5466
5466
|
*
|
|
5467
5467
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES)
|
|
5468
5468
|
*/
|
|
5469
5469
|
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
|
|
5470
5470
|
/**
|
|
5471
|
-
* The
|
|
5471
|
+
* The **`blendEquationiOES()`** method of the OES_draw_buffers_indexed WebGL extension sets both the RGB blend and alpha blend equations for a particular draw buffer.
|
|
5472
5472
|
*
|
|
5473
5473
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES)
|
|
5474
5474
|
*/
|
|
5475
5475
|
blendEquationiOES(buf: GLuint, mode: GLenum): void;
|
|
5476
5476
|
/**
|
|
5477
|
-
* The
|
|
5477
|
+
* The **`blendFuncSeparateiOES()`** method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for RGB and alpha components separately for a particular draw buffer.
|
|
5478
5478
|
*
|
|
5479
5479
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES)
|
|
5480
5480
|
*/
|
|
5481
5481
|
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
|
|
5482
5482
|
/**
|
|
5483
|
-
* The
|
|
5483
|
+
* The **`blendFunciOES()`** method of the OES_draw_buffers_indexed WebGL extension defines which function is used when blending pixels for a particular draw buffer.
|
|
5484
5484
|
*
|
|
5485
5485
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES)
|
|
5486
5486
|
*/
|
|
5487
5487
|
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
|
|
5488
5488
|
/**
|
|
5489
|
-
* The
|
|
5489
|
+
* The **`colorMaskiOES()`** method of the OES_draw_buffers_indexed WebGL extension sets which color components to enable or to disable when drawing or rendering for a particular draw buffer. It's the indexed version of WebGL 1's WebGLRenderingContext.colorMask() method.
|
|
5490
5490
|
*
|
|
5491
5491
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES)
|
|
5492
5492
|
*/
|
|
5493
5493
|
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
|
|
5494
5494
|
/**
|
|
5495
|
-
* The
|
|
5495
|
+
* The **`disableiOES()`** method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
|
|
5496
5496
|
*
|
|
5497
5497
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES)
|
|
5498
5498
|
*/
|
|
5499
5499
|
disableiOES(target: GLenum, index: GLuint): void;
|
|
5500
5500
|
/**
|
|
5501
|
-
* The
|
|
5501
|
+
* The **`enableiOES()`** method of the OES_draw_buffers_indexed WebGL extension enables blending for a particular draw buffer.
|
|
5502
5502
|
*
|
|
5503
5503
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES)
|
|
5504
5504
|
*/
|
|
@@ -5506,7 +5506,7 @@ interface OES_draw_buffers_indexed {
|
|
|
5506
5506
|
}
|
|
5507
5507
|
|
|
5508
5508
|
/**
|
|
5509
|
-
* The **`OES_element_index_uint`** extension is part of the WebGL API and adds support for
|
|
5509
|
+
* The **`OES_element_index_uint`** extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().
|
|
5510
5510
|
*
|
|
5511
5511
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
|
|
5512
5512
|
*/
|
|
@@ -5514,7 +5514,7 @@ interface OES_element_index_uint {
|
|
|
5514
5514
|
}
|
|
5515
5515
|
|
|
5516
5516
|
/**
|
|
5517
|
-
* The
|
|
5517
|
+
* The **`OES_fbo_render_mipmap`** extension is part of the WebGL API and makes it possible to attach any level of a texture to a framebuffer object.
|
|
5518
5518
|
*
|
|
5519
5519
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap)
|
|
5520
5520
|
*/
|
|
@@ -5522,7 +5522,7 @@ interface OES_fbo_render_mipmap {
|
|
|
5522
5522
|
}
|
|
5523
5523
|
|
|
5524
5524
|
/**
|
|
5525
|
-
* The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions
|
|
5525
|
+
* The **`OES_standard_derivatives`** extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.
|
|
5526
5526
|
*
|
|
5527
5527
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
|
|
5528
5528
|
*/
|
|
@@ -5564,7 +5564,7 @@ interface OES_texture_half_float_linear {
|
|
|
5564
5564
|
}
|
|
5565
5565
|
|
|
5566
5566
|
/**
|
|
5567
|
-
* The
|
|
5567
|
+
* The **`OES_vertex_array_object`** extension is part of the WebGL API and provides vertex array objects (VAOs) which encapsulate vertex array states. These objects keep pointers to vertex data and provide names for different sets of vertex data.
|
|
5568
5568
|
*
|
|
5569
5569
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object)
|
|
5570
5570
|
*/
|
|
@@ -5588,7 +5588,7 @@ interface OES_vertex_array_object {
|
|
|
5588
5588
|
*/
|
|
5589
5589
|
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
|
|
5590
5590
|
/**
|
|
5591
|
-
* The **`OES_vertex_array_object.isVertexArrayOES()`** method of the WebGL API returns
|
|
5591
|
+
* The **`OES_vertex_array_object.isVertexArrayOES()`** method of the WebGL API returns true if the passed object is a WebGLVertexArrayObject object.
|
|
5592
5592
|
*
|
|
5593
5593
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)
|
|
5594
5594
|
*/
|
|
@@ -5597,7 +5597,7 @@ interface OES_vertex_array_object {
|
|
|
5597
5597
|
}
|
|
5598
5598
|
|
|
5599
5599
|
/**
|
|
5600
|
-
* The
|
|
5600
|
+
* The **`OVR_multiview2`** extension is part of the WebGL API and adds support for rendering into multiple views simultaneously. This especially useful for virtual reality (VR) and WebXR.
|
|
5601
5601
|
*
|
|
5602
5602
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2)
|
|
5603
5603
|
*/
|
|
@@ -5620,7 +5620,7 @@ interface OffscreenCanvasEventMap {
|
|
|
5620
5620
|
}
|
|
5621
5621
|
|
|
5622
5622
|
/**
|
|
5623
|
-
* When using the canvas element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application.
|
|
5623
|
+
* When using the <canvas> element or the Canvas API, rendering, animation, and user interaction usually happen on the main execution thread of a web application. The computation relating to canvas animations and rendering can have a significant impact on application performance.
|
|
5624
5624
|
*
|
|
5625
5625
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
|
|
5626
5626
|
*/
|
|
@@ -5648,7 +5648,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
5648
5648
|
*/
|
|
5649
5649
|
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
|
|
5650
5650
|
/**
|
|
5651
|
-
* The **`OffscreenCanvas.getContext()`** method returns a drawing context for an offscreen canvas, or
|
|
5651
|
+
* The **`OffscreenCanvas.getContext()`** method returns a drawing context for an offscreen canvas, or null if the context identifier is not supported, or the offscreen canvas has already been set to a different context mode.
|
|
5652
5652
|
*
|
|
5653
5653
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
|
|
5654
5654
|
*/
|
|
@@ -5658,7 +5658,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
5658
5658
|
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
|
|
5659
5659
|
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
5660
5660
|
/**
|
|
5661
|
-
* The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the
|
|
5661
|
+
* The **`OffscreenCanvas.transferToImageBitmap()`** method creates an ImageBitmap object from the most recently rendered image of the OffscreenCanvas. The OffscreenCanvas allocates a new image for its subsequent rendering.
|
|
5662
5662
|
*
|
|
5663
5663
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
|
|
5664
5664
|
*/
|
|
@@ -5675,7 +5675,7 @@ declare var OffscreenCanvas: {
|
|
|
5675
5675
|
};
|
|
5676
5676
|
|
|
5677
5677
|
/**
|
|
5678
|
-
* The **`OffscreenCanvasRenderingContext2D`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an
|
|
5678
|
+
* The **`OffscreenCanvasRenderingContext2D`** interface is a CanvasRenderingContext2D rendering context for drawing to the bitmap of an OffscreenCanvas object. It is similar to the CanvasRenderingContext2D object, with the following differences:
|
|
5679
5679
|
*
|
|
5680
5680
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D)
|
|
5681
5681
|
*/
|
|
@@ -5690,13 +5690,13 @@ declare var OffscreenCanvasRenderingContext2D: {
|
|
|
5690
5690
|
};
|
|
5691
5691
|
|
|
5692
5692
|
/**
|
|
5693
|
-
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object.
|
|
5693
|
+
* The **`Path2D`** interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
|
|
5694
5694
|
*
|
|
5695
5695
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
|
|
5696
5696
|
*/
|
|
5697
5697
|
interface Path2D extends CanvasPath {
|
|
5698
5698
|
/**
|
|
5699
|
-
* The **`Path2D.addPath()`** method of the Canvas 2D API adds one Path2D object to another
|
|
5699
|
+
* The **`Path2D.addPath()`** method of the Canvas 2D API adds one Path2D object to another Path2D object.
|
|
5700
5700
|
*
|
|
5701
5701
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
|
|
5702
5702
|
*/
|
|
@@ -5739,7 +5739,7 @@ interface Performance extends EventTarget {
|
|
|
5739
5739
|
*/
|
|
5740
5740
|
clearMeasures(measureName?: string): void;
|
|
5741
5741
|
/**
|
|
5742
|
-
* The **`clearResourceTimings()`** method removes all performance entries with an
|
|
5742
|
+
* The **`clearResourceTimings()`** method removes all performance entries with an entryType of "resource" from the browser's performance timeline and sets the size of the performance resource data buffer to zero.
|
|
5743
5743
|
*
|
|
5744
5744
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings)
|
|
5745
5745
|
*/
|
|
@@ -5751,13 +5751,13 @@ interface Performance extends EventTarget {
|
|
|
5751
5751
|
*/
|
|
5752
5752
|
getEntries(): PerformanceEntryList;
|
|
5753
5753
|
/**
|
|
5754
|
-
* The **`getEntriesByName()`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given
|
|
5754
|
+
* The **`getEntriesByName()`** method returns an array of PerformanceEntry objects currently present in the performance timeline with the given name and type.
|
|
5755
5755
|
*
|
|
5756
5756
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName)
|
|
5757
5757
|
*/
|
|
5758
5758
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
5759
5759
|
/**
|
|
5760
|
-
* The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given
|
|
5760
|
+
* The **`getEntriesByType()`** method returns an array of PerformanceEntry objects currently present in the performance timeline for a given type.
|
|
5761
5761
|
*
|
|
5762
5762
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType)
|
|
5763
5763
|
*/
|
|
@@ -5775,19 +5775,19 @@ interface Performance extends EventTarget {
|
|
|
5775
5775
|
*/
|
|
5776
5776
|
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
|
|
5777
5777
|
/**
|
|
5778
|
-
* The **`performance.now()`** method returns a high resolution timestamp in milliseconds.
|
|
5778
|
+
* The **`performance.now()`** method returns a high resolution timestamp in milliseconds. It represents the time elapsed since Performance.timeOrigin (the time when navigation has started in window contexts, or the time when the worker is run in Worker and ServiceWorker contexts).
|
|
5779
5779
|
*
|
|
5780
5780
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now)
|
|
5781
5781
|
*/
|
|
5782
5782
|
now(): DOMHighResTimeStamp;
|
|
5783
5783
|
/**
|
|
5784
|
-
* The **`setResourceTimingBufferSize()`** method sets the desired size of the browser's resource timing buffer which stores the
|
|
5784
|
+
* The **`setResourceTimingBufferSize()`** method sets the desired size of the browser's resource timing buffer which stores the "resource" performance entries.
|
|
5785
5785
|
*
|
|
5786
5786
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize)
|
|
5787
5787
|
*/
|
|
5788
5788
|
setResourceTimingBufferSize(maxSize: number): void;
|
|
5789
5789
|
/**
|
|
5790
|
-
* The **`toJSON()`** method of the Performance interface is a
|
|
5790
|
+
* The **`toJSON()`** method of the Performance interface is a serializer; it returns a JSON representation of the Performance object.
|
|
5791
5791
|
*
|
|
5792
5792
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON)
|
|
5793
5793
|
*/
|
|
@@ -5810,7 +5810,7 @@ declare var Performance: {
|
|
|
5810
5810
|
*/
|
|
5811
5811
|
interface PerformanceEntry {
|
|
5812
5812
|
/**
|
|
5813
|
-
* The read-only **`duration`** property returns a
|
|
5813
|
+
* The read-only **`duration`** property returns a timestamp that is the duration of the performance entry. The meaning of this property depends on the value of this entry's entryType.
|
|
5814
5814
|
*
|
|
5815
5815
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration)
|
|
5816
5816
|
*/
|
|
@@ -5822,19 +5822,19 @@ interface PerformanceEntry {
|
|
|
5822
5822
|
*/
|
|
5823
5823
|
readonly entryType: string;
|
|
5824
5824
|
/**
|
|
5825
|
-
* The read-only **`name`** property of the PerformanceEntry interface is a string representing the name for a performance entry.
|
|
5825
|
+
* The read-only **`name`** property of the PerformanceEntry interface is a string representing the name for a performance entry. It acts as an identifier, but it does not have to be unique. The value depends on the subclass.
|
|
5826
5826
|
*
|
|
5827
5827
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name)
|
|
5828
5828
|
*/
|
|
5829
5829
|
readonly name: string;
|
|
5830
5830
|
/**
|
|
5831
|
-
* The read-only **`startTime`** property returns the first
|
|
5831
|
+
* The read-only **`startTime`** property returns the first timestamp recorded for this PerformanceEntry. The meaning of this property depends on the value of this entry's entryType.
|
|
5832
5832
|
*
|
|
5833
5833
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime)
|
|
5834
5834
|
*/
|
|
5835
5835
|
readonly startTime: DOMHighResTimeStamp;
|
|
5836
5836
|
/**
|
|
5837
|
-
* The **`toJSON()`** method is a
|
|
5837
|
+
* The **`toJSON()`** method is a serializer; it returns a JSON representation of the PerformanceEntry object.
|
|
5838
5838
|
*
|
|
5839
5839
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON)
|
|
5840
5840
|
*/
|
|
@@ -5847,13 +5847,13 @@ declare var PerformanceEntry: {
|
|
|
5847
5847
|
};
|
|
5848
5848
|
|
|
5849
5849
|
/**
|
|
5850
|
-
* **`PerformanceMark`** is an interface for PerformanceEntry objects with an
|
|
5850
|
+
* **`PerformanceMark`** is an interface for PerformanceEntry objects with an entryType of "mark".
|
|
5851
5851
|
*
|
|
5852
5852
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
|
|
5853
5853
|
*/
|
|
5854
5854
|
interface PerformanceMark extends PerformanceEntry {
|
|
5855
5855
|
/**
|
|
5856
|
-
* The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (either when using
|
|
5856
|
+
* The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (either when using performance.mark() or the PerformanceMark() constructor).
|
|
5857
5857
|
*
|
|
5858
5858
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail)
|
|
5859
5859
|
*/
|
|
@@ -5866,13 +5866,13 @@ declare var PerformanceMark: {
|
|
|
5866
5866
|
};
|
|
5867
5867
|
|
|
5868
5868
|
/**
|
|
5869
|
-
* **`PerformanceMeasure`** is an
|
|
5869
|
+
* **`PerformanceMeasure`** is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline.
|
|
5870
5870
|
*
|
|
5871
5871
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
|
|
5872
5872
|
*/
|
|
5873
5873
|
interface PerformanceMeasure extends PerformanceEntry {
|
|
5874
5874
|
/**
|
|
5875
|
-
* The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (when using
|
|
5875
|
+
* The read-only **`detail`** property returns arbitrary metadata that was included in the mark upon construction (when using performance.measure().
|
|
5876
5876
|
*
|
|
5877
5877
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail)
|
|
5878
5878
|
*/
|
|
@@ -5885,19 +5885,19 @@ declare var PerformanceMeasure: {
|
|
|
5885
5885
|
};
|
|
5886
5886
|
|
|
5887
5887
|
/**
|
|
5888
|
-
* The **`PerformanceObserver`** interface is used to observe performance measurement events and be notified of new
|
|
5888
|
+
* The **`PerformanceObserver`** interface is used to observe performance measurement events and be notified of new performance entries as they are recorded in the browser's performance timeline.
|
|
5889
5889
|
*
|
|
5890
5890
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver)
|
|
5891
5891
|
*/
|
|
5892
5892
|
interface PerformanceObserver {
|
|
5893
5893
|
/**
|
|
5894
|
-
* The **`disconnect()`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any
|
|
5894
|
+
* The **`disconnect()`** method of the PerformanceObserver interface is used to stop the performance observer from receiving any performance entry events.
|
|
5895
5895
|
*
|
|
5896
5896
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect)
|
|
5897
5897
|
*/
|
|
5898
5898
|
disconnect(): void;
|
|
5899
5899
|
/**
|
|
5900
|
-
* The **`observe()`** method of the
|
|
5900
|
+
* The **`observe()`** method of the PerformanceObserver interface is used to specify the set of performance entry types to observe.
|
|
5901
5901
|
*
|
|
5902
5902
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe)
|
|
5903
5903
|
*/
|
|
@@ -5914,7 +5914,7 @@ declare var PerformanceObserver: {
|
|
|
5914
5914
|
prototype: PerformanceObserver;
|
|
5915
5915
|
new(callback: PerformanceObserverCallback): PerformanceObserver;
|
|
5916
5916
|
/**
|
|
5917
|
-
* The static **`supportedEntryTypes`** read-only property of the PerformanceObserver interface returns an array of the
|
|
5917
|
+
* The static **`supportedEntryTypes`** read-only property of the PerformanceObserver interface returns an array of the entryType values supported by the user agent.
|
|
5918
5918
|
*
|
|
5919
5919
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static)
|
|
5920
5920
|
*/
|
|
@@ -5922,25 +5922,25 @@ declare var PerformanceObserver: {
|
|
|
5922
5922
|
};
|
|
5923
5923
|
|
|
5924
5924
|
/**
|
|
5925
|
-
* The **`PerformanceObserverEntryList`** interface is a list of
|
|
5925
|
+
* The **`PerformanceObserverEntryList`** interface is a list of performance events that were explicitly observed via the observe() method.
|
|
5926
5926
|
*
|
|
5927
5927
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList)
|
|
5928
5928
|
*/
|
|
5929
5929
|
interface PerformanceObserverEntryList {
|
|
5930
5930
|
/**
|
|
5931
|
-
* The **`getEntries()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed
|
|
5931
|
+
* The **`getEntries()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed performance entry objects. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback).
|
|
5932
5932
|
*
|
|
5933
5933
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries)
|
|
5934
5934
|
*/
|
|
5935
5935
|
getEntries(): PerformanceEntryList;
|
|
5936
5936
|
/**
|
|
5937
|
-
* The **`getEntriesByName()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given
|
|
5937
|
+
* The **`getEntriesByName()`** method of the PerformanceObserverEntryList interface returns a list of explicitly observed PerformanceEntry objects for a given name and entryType. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback).
|
|
5938
5938
|
*
|
|
5939
5939
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)
|
|
5940
5940
|
*/
|
|
5941
5941
|
getEntriesByName(name: string, type?: string): PerformanceEntryList;
|
|
5942
5942
|
/**
|
|
5943
|
-
* The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly
|
|
5943
|
+
* The **`getEntriesByType()`** method of the PerformanceObserverEntryList returns a list of explicitly observed performance entry objects for a given performance entry type. The list's members are determined by the set of entry types specified in the call to the observe() method. The list is available in the observer's callback function (as the first parameter in the callback).
|
|
5944
5944
|
*
|
|
5945
5945
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)
|
|
5946
5946
|
*/
|
|
@@ -5953,49 +5953,49 @@ declare var PerformanceObserverEntryList: {
|
|
|
5953
5953
|
};
|
|
5954
5954
|
|
|
5955
5955
|
/**
|
|
5956
|
-
* The **`PerformanceResourceTiming`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources.
|
|
5956
|
+
* The **`PerformanceResourceTiming`** interface enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.
|
|
5957
5957
|
*
|
|
5958
5958
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
|
|
5959
5959
|
*/
|
|
5960
5960
|
interface PerformanceResourceTiming extends PerformanceEntry {
|
|
5961
5961
|
/**
|
|
5962
|
-
* The **`connectEnd`** read-only property returns the
|
|
5962
|
+
* The **`connectEnd`** read-only property returns the timestamp immediately after the browser finishes establishing the connection to the server to retrieve the resource. The timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as TLS handshake and SOCKS authentication.
|
|
5963
5963
|
*
|
|
5964
5964
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd)
|
|
5965
5965
|
*/
|
|
5966
5966
|
readonly connectEnd: DOMHighResTimeStamp;
|
|
5967
5967
|
/**
|
|
5968
|
-
* The **`connectStart`** read-only property returns the
|
|
5968
|
+
* The **`connectStart`** read-only property returns the timestamp immediately before the user agent starts establishing the connection to the server to retrieve the resource.
|
|
5969
5969
|
*
|
|
5970
5970
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart)
|
|
5971
5971
|
*/
|
|
5972
5972
|
readonly connectStart: DOMHighResTimeStamp;
|
|
5973
5973
|
/**
|
|
5974
|
-
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli).
|
|
5974
|
+
* The **`decodedBodySize`** read-only property returns the size (in octets) received from the fetch (HTTP or cache) of the message body after removing any applied content encoding (like gzip or Brotli). If the resource is retrieved from an application cache or local resources, it returns the size of the payload after removing any applied content encoding.
|
|
5975
5975
|
*
|
|
5976
5976
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize)
|
|
5977
5977
|
*/
|
|
5978
5978
|
readonly decodedBodySize: number;
|
|
5979
5979
|
/**
|
|
5980
|
-
* The **`domainLookupEnd`** read-only property returns the
|
|
5980
|
+
* The **`domainLookupEnd`** read-only property returns the timestamp immediately after the browser finishes the domain-name lookup for the resource.
|
|
5981
5981
|
*
|
|
5982
5982
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)
|
|
5983
5983
|
*/
|
|
5984
5984
|
readonly domainLookupEnd: DOMHighResTimeStamp;
|
|
5985
5985
|
/**
|
|
5986
|
-
* The **`domainLookupStart`** read-only property returns the
|
|
5986
|
+
* The **`domainLookupStart`** read-only property returns the timestamp immediately before the browser starts the domain name lookup for the resource.
|
|
5987
5987
|
*
|
|
5988
5988
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart)
|
|
5989
5989
|
*/
|
|
5990
5990
|
readonly domainLookupStart: DOMHighResTimeStamp;
|
|
5991
5991
|
/**
|
|
5992
|
-
* The **`encodedBodySize`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli).
|
|
5992
|
+
* The **`encodedBodySize`** read-only property represents the size (in octets) received from the fetch (HTTP or cache) of the payload body before removing any applied content encodings (like gzip or Brotli). If the resource is retrieved from an application cache or a local resource, it must return the size of the payload body before removing any applied content encoding.
|
|
5993
5993
|
*
|
|
5994
5994
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize)
|
|
5995
5995
|
*/
|
|
5996
5996
|
readonly encodedBodySize: number;
|
|
5997
5997
|
/**
|
|
5998
|
-
* The **`fetchStart`** read-only property represents a
|
|
5998
|
+
* The **`fetchStart`** read-only property represents a timestamp immediately before the browser starts to fetch the resource.
|
|
5999
5999
|
*
|
|
6000
6000
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart)
|
|
6001
6001
|
*/
|
|
@@ -6013,31 +6013,31 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
6013
6013
|
*/
|
|
6014
6014
|
readonly nextHopProtocol: string;
|
|
6015
6015
|
/**
|
|
6016
|
-
* The **`redirectEnd`** read-only property returns a
|
|
6016
|
+
* The **`redirectEnd`** read-only property returns a timestamp immediately after receiving the last byte of the response of the last redirect.
|
|
6017
6017
|
*
|
|
6018
6018
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd)
|
|
6019
6019
|
*/
|
|
6020
6020
|
readonly redirectEnd: DOMHighResTimeStamp;
|
|
6021
6021
|
/**
|
|
6022
|
-
* The **`redirectStart`** read-only property returns a
|
|
6022
|
+
* The **`redirectStart`** read-only property returns a timestamp representing the start time of the fetch which that initiates the redirect.
|
|
6023
6023
|
*
|
|
6024
6024
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart)
|
|
6025
6025
|
*/
|
|
6026
6026
|
readonly redirectStart: DOMHighResTimeStamp;
|
|
6027
6027
|
/**
|
|
6028
|
-
* The **`requestStart`** read-only property returns a
|
|
6028
|
+
* The **`requestStart`** read-only property returns a timestamp of the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.
|
|
6029
6029
|
*
|
|
6030
6030
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart)
|
|
6031
6031
|
*/
|
|
6032
6032
|
readonly requestStart: DOMHighResTimeStamp;
|
|
6033
6033
|
/**
|
|
6034
|
-
* The **`responseEnd`** read-only property returns a
|
|
6034
|
+
* The **`responseEnd`** read-only property returns a timestamp immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.
|
|
6035
6035
|
*
|
|
6036
6036
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd)
|
|
6037
6037
|
*/
|
|
6038
6038
|
readonly responseEnd: DOMHighResTimeStamp;
|
|
6039
6039
|
/**
|
|
6040
|
-
* The **`responseStart`** read-only property returns a
|
|
6040
|
+
* The **`responseStart`** read-only property returns a timestamp immediately after the browser receives the first byte of the response from the server, cache, or local resource.
|
|
6041
6041
|
*
|
|
6042
6042
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart)
|
|
6043
6043
|
*/
|
|
@@ -6049,7 +6049,7 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
6049
6049
|
*/
|
|
6050
6050
|
readonly responseStatus: number;
|
|
6051
6051
|
/**
|
|
6052
|
-
* The **`secureConnectionStart`** read-only property returns a
|
|
6052
|
+
* The **`secureConnectionStart`** read-only property returns a timestamp immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, the property returns zero.
|
|
6053
6053
|
*
|
|
6054
6054
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)
|
|
6055
6055
|
*/
|
|
@@ -6061,19 +6061,19 @@ interface PerformanceResourceTiming extends PerformanceEntry {
|
|
|
6061
6061
|
*/
|
|
6062
6062
|
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
|
|
6063
6063
|
/**
|
|
6064
|
-
* The **`transferSize`** read-only property represents the size (in octets) of the fetched resource.
|
|
6064
|
+
* The **`transferSize`** read-only property represents the size (in octets) of the fetched resource. The size includes the response header fields plus the response payload body (as defined by RFC7230).
|
|
6065
6065
|
*
|
|
6066
6066
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize)
|
|
6067
6067
|
*/
|
|
6068
6068
|
readonly transferSize: number;
|
|
6069
6069
|
/**
|
|
6070
|
-
* The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running.
|
|
6070
|
+
* The **`workerStart`** read-only property of the PerformanceResourceTiming interface returns a DOMHighResTimeStamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running. If the resource is not intercepted by a Service Worker the property will always return 0.
|
|
6071
6071
|
*
|
|
6072
6072
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart)
|
|
6073
6073
|
*/
|
|
6074
6074
|
readonly workerStart: DOMHighResTimeStamp;
|
|
6075
6075
|
/**
|
|
6076
|
-
* The **`toJSON()`** method of the PerformanceResourceTiming interface is a
|
|
6076
|
+
* The **`toJSON()`** method of the PerformanceResourceTiming interface is a serializer; it returns a JSON representation of the PerformanceResourceTiming object.
|
|
6077
6077
|
*
|
|
6078
6078
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON)
|
|
6079
6079
|
*/
|
|
@@ -6098,7 +6098,7 @@ interface PerformanceServerTiming {
|
|
|
6098
6098
|
*/
|
|
6099
6099
|
readonly description: string;
|
|
6100
6100
|
/**
|
|
6101
|
-
* The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value
|
|
6101
|
+
* The **`duration`** read-only property returns a double that contains the server-specified metric duration, or the value 0.0.
|
|
6102
6102
|
*
|
|
6103
6103
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration)
|
|
6104
6104
|
*/
|
|
@@ -6110,7 +6110,7 @@ interface PerformanceServerTiming {
|
|
|
6110
6110
|
*/
|
|
6111
6111
|
readonly name: string;
|
|
6112
6112
|
/**
|
|
6113
|
-
* The **`toJSON()`** method of the PerformanceServerTiming interface is a
|
|
6113
|
+
* The **`toJSON()`** method of the PerformanceServerTiming interface is a serializer; it returns a JSON representation of the PerformanceServerTiming object.
|
|
6114
6114
|
*
|
|
6115
6115
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON)
|
|
6116
6116
|
*/
|
|
@@ -6141,7 +6141,7 @@ interface PermissionStatus extends EventTarget {
|
|
|
6141
6141
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
|
|
6142
6142
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
6143
6143
|
/**
|
|
6144
|
-
* The **`state`** read-only property of the PermissionStatus interface returns the state of a requested permission.
|
|
6144
|
+
* The **`state`** read-only property of the PermissionStatus interface returns the state of a requested permission. This property returns one of 'granted', 'denied', or 'prompt'.
|
|
6145
6145
|
*
|
|
6146
6146
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state)
|
|
6147
6147
|
*/
|
|
@@ -6177,19 +6177,19 @@ declare var Permissions: {
|
|
|
6177
6177
|
};
|
|
6178
6178
|
|
|
6179
6179
|
/**
|
|
6180
|
-
* The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an
|
|
6180
|
+
* The **`ProgressEvent`** interface represents events that measure the progress of an underlying process, like an HTTP request (e.g., an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
|
|
6181
6181
|
*
|
|
6182
6182
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
|
|
6183
6183
|
*/
|
|
6184
6184
|
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
|
|
6185
6185
|
/**
|
|
6186
|
-
* The **`ProgressEvent.lengthComputable`** read-only property is a boolean flag indicating if the resource concerned by the ProgressEvent has a length that can be calculated.
|
|
6186
|
+
* The **`ProgressEvent.lengthComputable`** read-only property is a boolean flag indicating if the resource concerned by the ProgressEvent has a length that can be calculated. If not, the ProgressEvent.total property has no significant value.
|
|
6187
6187
|
*
|
|
6188
6188
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable)
|
|
6189
6189
|
*/
|
|
6190
6190
|
readonly lengthComputable: boolean;
|
|
6191
6191
|
/**
|
|
6192
|
-
* The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed.
|
|
6192
|
+
* The **`ProgressEvent.loaded`** read-only property is a number indicating the size of the data already transmitted or processed. The progress ratio can be calculated by dividing the value of this property by ProgressEvent.total.
|
|
6193
6193
|
*
|
|
6194
6194
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded)
|
|
6195
6195
|
*/
|
|
@@ -6209,19 +6209,19 @@ declare var ProgressEvent: {
|
|
|
6209
6209
|
};
|
|
6210
6210
|
|
|
6211
6211
|
/**
|
|
6212
|
-
* The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected.
|
|
6212
|
+
* The **`PromiseRejectionEvent`** interface represents events which are sent to the global script context when JavaScript Promises are rejected. These events are particularly useful for telemetry and debugging purposes.
|
|
6213
6213
|
*
|
|
6214
6214
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent)
|
|
6215
6215
|
*/
|
|
6216
6216
|
interface PromiseRejectionEvent extends Event {
|
|
6217
6217
|
/**
|
|
6218
|
-
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript Promise which was rejected.
|
|
6218
|
+
* The PromiseRejectionEvent interface's **`promise`** read-only property indicates the JavaScript Promise which was rejected. You can examine the event's PromiseRejectionEvent.reason property to learn why the promise was rejected.
|
|
6219
6219
|
*
|
|
6220
6220
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise)
|
|
6221
6221
|
*/
|
|
6222
6222
|
readonly promise: Promise<any>;
|
|
6223
6223
|
/**
|
|
6224
|
-
* The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject().
|
|
6224
|
+
* The PromiseRejectionEvent **`reason`** read-only property is any JavaScript value or Object which provides the reason passed into Promise.reject(). This in theory provides information about why the promise was rejected.
|
|
6225
6225
|
*
|
|
6226
6226
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason)
|
|
6227
6227
|
*/
|
|
@@ -6234,14 +6234,14 @@ declare var PromiseRejectionEvent: {
|
|
|
6234
6234
|
};
|
|
6235
6235
|
|
|
6236
6236
|
/**
|
|
6237
|
-
* The **`PushEvent`** interface of the Push API represents a push message that has been received.
|
|
6237
|
+
* The **`PushEvent`** interface of the Push API represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
|
|
6238
6238
|
* Available only in secure contexts.
|
|
6239
6239
|
*
|
|
6240
6240
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
|
|
6241
6241
|
*/
|
|
6242
6242
|
interface PushEvent extends ExtendableEvent {
|
|
6243
6243
|
/**
|
|
6244
|
-
* The
|
|
6244
|
+
* The **`data`** read-only property of the PushEvent interface returns a reference to a PushMessageData object containing data sent to the PushSubscription.
|
|
6245
6245
|
*
|
|
6246
6246
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data)
|
|
6247
6247
|
*/
|
|
@@ -6267,7 +6267,7 @@ interface PushManager {
|
|
|
6267
6267
|
*/
|
|
6268
6268
|
getSubscription(): Promise<PushSubscription | null>;
|
|
6269
6269
|
/**
|
|
6270
|
-
* The **`permissionState()`** method of the PushManager interface returns a Promise that resolves to a string indicating the permission state of the push manager.
|
|
6270
|
+
* The **`permissionState()`** method of the PushManager interface returns a Promise that resolves to a string indicating the permission state of the push manager. Possible values are 'prompt', 'denied', or 'granted'.
|
|
6271
6271
|
*
|
|
6272
6272
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState)
|
|
6273
6273
|
*/
|
|
@@ -6342,7 +6342,7 @@ declare var PushMessageData: {
|
|
|
6342
6342
|
};
|
|
6343
6343
|
|
|
6344
6344
|
/**
|
|
6345
|
-
* The
|
|
6345
|
+
* The **`PushSubscription`** interface of the Push API provides a subscription's URL endpoint along with the public key and secrets that should be used for encrypting push messages to this subscription. This information must be passed to the application server, using any desired application-specific method.
|
|
6346
6346
|
* Available only in secure contexts.
|
|
6347
6347
|
*
|
|
6348
6348
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
|
|
@@ -6355,7 +6355,7 @@ interface PushSubscription {
|
|
|
6355
6355
|
*/
|
|
6356
6356
|
readonly endpoint: string;
|
|
6357
6357
|
/**
|
|
6358
|
-
* The **`expirationTime`** read-only property of the PushSubscription interface returns a DOMHighResTimeStamp of the subscription expiration time associated with the push subscription, if there is one, or
|
|
6358
|
+
* The **`expirationTime`** read-only property of the PushSubscription interface returns a DOMHighResTimeStamp of the subscription expiration time associated with the push subscription, if there is one, or null otherwise.
|
|
6359
6359
|
*
|
|
6360
6360
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime)
|
|
6361
6361
|
*/
|
|
@@ -6367,19 +6367,19 @@ interface PushSubscription {
|
|
|
6367
6367
|
*/
|
|
6368
6368
|
readonly options: PushSubscriptionOptions;
|
|
6369
6369
|
/**
|
|
6370
|
-
* The
|
|
6370
|
+
* The **`getKey()`** method of the PushSubscription interface returns an ArrayBuffer representing a client public key, which can then be sent to a server and used in encrypting push message data.
|
|
6371
6371
|
*
|
|
6372
6372
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey)
|
|
6373
6373
|
*/
|
|
6374
6374
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
6375
6375
|
/**
|
|
6376
|
-
* The
|
|
6376
|
+
* The **`toJSON()`** method of the PushSubscription interface is a standard serializer: it returns a JSON representation of the subscription properties, providing a useful shortcut.
|
|
6377
6377
|
*
|
|
6378
6378
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON)
|
|
6379
6379
|
*/
|
|
6380
6380
|
toJSON(): PushSubscriptionJSON;
|
|
6381
6381
|
/**
|
|
6382
|
-
* The
|
|
6382
|
+
* The **`unsubscribe()`** method of the PushSubscription interface returns a Promise that resolves to a boolean value when the current subscription is successfully unsubscribed.
|
|
6383
6383
|
*
|
|
6384
6384
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe)
|
|
6385
6385
|
*/
|
|
@@ -6429,19 +6429,19 @@ declare var PushSubscriptionOptions: {
|
|
|
6429
6429
|
};
|
|
6430
6430
|
|
|
6431
6431
|
/**
|
|
6432
|
-
* The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream.
|
|
6432
|
+
* The **`ReadableByteStreamController`** interface of the Streams API represents a controller for a readable byte stream. It allows control of the state and internal queue of a ReadableStream with an underlying byte source, and enables efficient zero-copy transfer of data from the underlying source to a consumer when the stream's internal queue is empty.
|
|
6433
6433
|
*
|
|
6434
6434
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController)
|
|
6435
6435
|
*/
|
|
6436
6436
|
interface ReadableByteStreamController {
|
|
6437
6437
|
/**
|
|
6438
|
-
* The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or
|
|
6438
|
+
* The **`byobRequest`** read-only property of the ReadableByteStreamController interface returns the current BYOB request, or null if there are no pending requests.
|
|
6439
6439
|
*
|
|
6440
6440
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest)
|
|
6441
6441
|
*/
|
|
6442
6442
|
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
6443
6443
|
/**
|
|
6444
|
-
* The **`desiredSize`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its
|
|
6444
|
+
* The **`desiredSize`** read-only property of the ReadableByteStreamController interface returns the number of bytes required to fill the stream's internal queue to its "desired size".
|
|
6445
6445
|
*
|
|
6446
6446
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize)
|
|
6447
6447
|
*/
|
|
@@ -6472,7 +6472,7 @@ declare var ReadableByteStreamController: {
|
|
|
6472
6472
|
};
|
|
6473
6473
|
|
|
6474
6474
|
/**
|
|
6475
|
-
* The
|
|
6475
|
+
* The **`ReadableStream`** interface of the Streams API represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
|
|
6476
6476
|
*
|
|
6477
6477
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
|
|
6478
6478
|
*/
|
|
@@ -6490,7 +6490,7 @@ interface ReadableStream<R = any> {
|
|
|
6490
6490
|
*/
|
|
6491
6491
|
cancel(reason?: any): Promise<void>;
|
|
6492
6492
|
/**
|
|
6493
|
-
* The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it.
|
|
6493
|
+
* The **`getReader()`** method of the ReadableStream interface creates a reader and locks the stream to it. While the stream is locked, no other reader can be acquired until this one is released.
|
|
6494
6494
|
*
|
|
6495
6495
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader)
|
|
6496
6496
|
*/
|
|
@@ -6504,7 +6504,7 @@ interface ReadableStream<R = any> {
|
|
|
6504
6504
|
*/
|
|
6505
6505
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
6506
6506
|
/**
|
|
6507
|
-
* The **`pipeTo()`** method of the ReadableStream interface pipes the current
|
|
6507
|
+
* The **`pipeTo()`** method of the ReadableStream interface pipes the current ReadableStream to a given WritableStream and returns a Promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
|
|
6508
6508
|
*
|
|
6509
6509
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo)
|
|
6510
6510
|
*/
|
|
@@ -6525,19 +6525,19 @@ declare var ReadableStream: {
|
|
|
6525
6525
|
};
|
|
6526
6526
|
|
|
6527
6527
|
/**
|
|
6528
|
-
* The
|
|
6528
|
+
* The **`ReadableStreamBYOBReader`** interface of the Streams API defines a reader for a ReadableStream that supports zero-copy reading from an underlying byte source. It is used for efficient copying from underlying sources where the data is delivered as an "anonymous" sequence of bytes, such as files.
|
|
6529
6529
|
*
|
|
6530
6530
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader)
|
|
6531
6531
|
*/
|
|
6532
6532
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
6533
6533
|
/**
|
|
6534
|
-
* The **`read()`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream.
|
|
6534
|
+
* The **`read()`** method of the ReadableStreamBYOBReader interface is used to read data into a view on a user-supplied buffer from an associated readable byte stream. A request for data will be satisfied from the stream's internal queues if there is any data present. If the stream queues are empty, the request may be supplied as a zero-copy transfer from the underlying byte source.
|
|
6535
6535
|
*
|
|
6536
6536
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read)
|
|
6537
6537
|
*/
|
|
6538
|
-
read<T extends
|
|
6538
|
+
read<T extends Exclude<BufferSource, ArrayBuffer>>(view: T, options?: ReadableStreamBYOBReaderReadOptions): Promise<ReadableStreamReadResult<T>>;
|
|
6539
6539
|
/**
|
|
6540
|
-
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream.
|
|
6540
|
+
* The **`releaseLock()`** method of the ReadableStreamBYOBReader interface releases the reader's lock on the stream. After the lock is released, the reader is no longer active.
|
|
6541
6541
|
*
|
|
6542
6542
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock)
|
|
6543
6543
|
*/
|
|
@@ -6550,7 +6550,7 @@ declare var ReadableStreamBYOBReader: {
|
|
|
6550
6550
|
};
|
|
6551
6551
|
|
|
6552
6552
|
/**
|
|
6553
|
-
* The **`ReadableStreamBYOBRequest`** interface of the Streams API represents a
|
|
6553
|
+
* The **`ReadableStreamBYOBRequest`** interface of the Streams API represents a "pull request" for data from an underlying source that will made as a zero-copy transfer to a consumer (bypassing the stream's internal queues).
|
|
6554
6554
|
*
|
|
6555
6555
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest)
|
|
6556
6556
|
*/
|
|
@@ -6581,7 +6581,7 @@ declare var ReadableStreamBYOBRequest: {
|
|
|
6581
6581
|
};
|
|
6582
6582
|
|
|
6583
6583
|
/**
|
|
6584
|
-
* The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.
|
|
6584
|
+
* The **`ReadableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue. Default controllers are for streams that are not byte streams.
|
|
6585
6585
|
*
|
|
6586
6586
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController)
|
|
6587
6587
|
*/
|
|
@@ -6650,7 +6650,7 @@ interface ReadableStreamGenericReader {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
|
|
6652
6652
|
/**
|
|
6653
|
-
* The
|
|
6653
|
+
* The **`ReportingObserver`** interface of the Reporting API allows you to collect and access reports.
|
|
6654
6654
|
*
|
|
6655
6655
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver)
|
|
6656
6656
|
*/
|
|
@@ -6687,19 +6687,19 @@ declare var ReportingObserver: {
|
|
|
6687
6687
|
*/
|
|
6688
6688
|
interface Request extends Body {
|
|
6689
6689
|
/**
|
|
6690
|
-
* The **`cache`** read-only property of the Request interface contains the cache mode of the request.
|
|
6690
|
+
* The **`cache`** read-only property of the Request interface contains the cache mode of the request. It controls how the request will interact with the browser's HTTP cache.
|
|
6691
6691
|
*
|
|
6692
6692
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
|
|
6693
6693
|
*/
|
|
6694
6694
|
readonly cache: RequestCache;
|
|
6695
6695
|
/**
|
|
6696
|
-
* The **`credentials`** read-only property of the Request interface reflects the value given to the Request
|
|
6696
|
+
* The **`credentials`** read-only property of the Request interface reflects the value given to the Request() constructor in the credentials option. It determines whether or not the browser sends credentials with the request, as well as whether any Set-Cookie response headers are respected.
|
|
6697
6697
|
*
|
|
6698
6698
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
|
|
6699
6699
|
*/
|
|
6700
6700
|
readonly credentials: RequestCredentials;
|
|
6701
6701
|
/**
|
|
6702
|
-
* The **`destination`** read-only property of the
|
|
6702
|
+
* The **`destination`** read-only property of the Request interface returns a string describing the type of content being requested.
|
|
6703
6703
|
*
|
|
6704
6704
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
|
|
6705
6705
|
*/
|
|
@@ -6717,19 +6717,19 @@ interface Request extends Body {
|
|
|
6717
6717
|
*/
|
|
6718
6718
|
readonly integrity: string;
|
|
6719
6719
|
/**
|
|
6720
|
-
* The **`keepalive`** read-only property of the Request interface contains the request's
|
|
6720
|
+
* The **`keepalive`** read-only property of the Request interface contains the request's keepalive setting (true or false), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete.
|
|
6721
6721
|
*
|
|
6722
6722
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
|
|
6723
6723
|
*/
|
|
6724
6724
|
readonly keepalive: boolean;
|
|
6725
6725
|
/**
|
|
6726
|
-
* The **`method`** read-only property of the Request interface contains the request's method (
|
|
6726
|
+
* The **`method`** read-only property of the Request interface contains the request's method (GET, POST, etc.)
|
|
6727
6727
|
*
|
|
6728
6728
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
|
|
6729
6729
|
*/
|
|
6730
6730
|
readonly method: string;
|
|
6731
6731
|
/**
|
|
6732
|
-
* The **`mode`** read-only property of the Request interface contains the mode of the request (e.g.,
|
|
6732
|
+
* The **`mode`** read-only property of the Request interface contains the mode of the request (e.g., cors, no-cors, same-origin, or navigate.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable.
|
|
6733
6733
|
*
|
|
6734
6734
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
|
|
6735
6735
|
*/
|
|
@@ -6741,7 +6741,7 @@ interface Request extends Body {
|
|
|
6741
6741
|
*/
|
|
6742
6742
|
readonly redirect: RequestRedirect;
|
|
6743
6743
|
/**
|
|
6744
|
-
* The **`referrer`** read-only property of the Request interface is set by the user agent to be the referrer of the Request.
|
|
6744
|
+
* The **`referrer`** read-only property of the Request interface is set by the user agent to be the referrer of the Request. (e.g., client, no-referrer, or a URL.)
|
|
6745
6745
|
*
|
|
6746
6746
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
|
|
6747
6747
|
*/
|
|
@@ -6765,7 +6765,7 @@ interface Request extends Body {
|
|
|
6765
6765
|
*/
|
|
6766
6766
|
readonly url: string;
|
|
6767
6767
|
/**
|
|
6768
|
-
* The **`clone()`** method of the Request interface creates a copy of the current
|
|
6768
|
+
* The **`clone()`** method of the Request interface creates a copy of the current Request object.
|
|
6769
6769
|
*
|
|
6770
6770
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone)
|
|
6771
6771
|
*/
|
|
@@ -6814,13 +6814,13 @@ interface Response extends Body {
|
|
|
6814
6814
|
*/
|
|
6815
6815
|
readonly statusText: string;
|
|
6816
6816
|
/**
|
|
6817
|
-
* The **`type`** read-only property of the Response interface contains the type of the response.
|
|
6817
|
+
* The **`type`** read-only property of the Response interface contains the type of the response. The type determines whether scripts are able to access the response body and headers.
|
|
6818
6818
|
*
|
|
6819
6819
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type)
|
|
6820
6820
|
*/
|
|
6821
6821
|
readonly type: ResponseType;
|
|
6822
6822
|
/**
|
|
6823
|
-
* The **`url`** read-only property of the Response interface contains the URL of the response.
|
|
6823
|
+
* The **`url`** read-only property of the Response interface contains the URL of the response. The value of the url property will be the final URL obtained after any redirects.
|
|
6824
6824
|
*
|
|
6825
6825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url)
|
|
6826
6826
|
*/
|
|
@@ -6837,19 +6837,19 @@ declare var Response: {
|
|
|
6837
6837
|
prototype: Response;
|
|
6838
6838
|
new(body?: BodyInit | null, init?: ResponseInit): Response;
|
|
6839
6839
|
/**
|
|
6840
|
-
* The **`error()`** static method of the Response interface returns a new
|
|
6840
|
+
* The **`error()`** static method of the Response interface returns a new Response object associated with a network error.
|
|
6841
6841
|
*
|
|
6842
6842
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static)
|
|
6843
6843
|
*/
|
|
6844
6844
|
error(): Response;
|
|
6845
6845
|
/**
|
|
6846
|
-
* The **`json()`**
|
|
6846
|
+
* The **`json()`** method of the Response interface takes a Response stream and reads it to completion. It returns a promise which resolves with the result of parsing the body text as JSON.
|
|
6847
6847
|
*
|
|
6848
6848
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static)
|
|
6849
6849
|
*/
|
|
6850
6850
|
json(data: any, init?: ResponseInit): Response;
|
|
6851
6851
|
/**
|
|
6852
|
-
* The **`redirect()`** static method of the Response interface returns a
|
|
6852
|
+
* The **`redirect()`** static method of the Response interface returns a Response resulting in a redirect to the specified URL.
|
|
6853
6853
|
*
|
|
6854
6854
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)
|
|
6855
6855
|
*/
|
|
@@ -6869,7 +6869,7 @@ interface Scheduler {
|
|
|
6869
6869
|
*/
|
|
6870
6870
|
postTask(callback: SchedulerPostTaskCallback, options?: SchedulerPostTaskOptions): Promise<any>;
|
|
6871
6871
|
/**
|
|
6872
|
-
* The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information).
|
|
6872
|
+
* The **`yield()`** method of the Scheduler interface is used for yielding to the main thread during a task and continuing execution later, with the continuation scheduled as a prioritized task (see the Prioritized Task Scheduling API for more information). This allows long-running work to be broken up so the browser stays responsive.
|
|
6873
6873
|
*
|
|
6874
6874
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Scheduler/yield)
|
|
6875
6875
|
*/
|
|
@@ -6882,7 +6882,7 @@ declare var Scheduler: {
|
|
|
6882
6882
|
};
|
|
6883
6883
|
|
|
6884
6884
|
/**
|
|
6885
|
-
* The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a
|
|
6885
|
+
* The **`SecurityPolicyViolationEvent`** interface inherits from Event, and represents the event object of a securitypolicyviolation event sent on an Element, Document, or worker when its Content Security Policy (CSP) is violated.
|
|
6886
6886
|
*
|
|
6887
6887
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
|
|
6888
6888
|
*/
|
|
@@ -6930,7 +6930,7 @@ interface SecurityPolicyViolationEvent extends Event {
|
|
|
6930
6930
|
*/
|
|
6931
6931
|
readonly originalPolicy: string;
|
|
6932
6932
|
/**
|
|
6933
|
-
* The **`referrer`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated.
|
|
6933
|
+
* The **`referrer`** read-only property of the SecurityPolicyViolationEvent interface is a string representing the referrer for the resources whose Content Security Policy (CSP) was violated. This will be a URL or null.
|
|
6934
6934
|
*
|
|
6935
6935
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer)
|
|
6936
6936
|
*/
|
|
@@ -6971,7 +6971,7 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
|
6971
6971
|
}
|
|
6972
6972
|
|
|
6973
6973
|
/**
|
|
6974
|
-
* The **`ServiceWorker`** interface of the Service Worker API provides a reference to a service worker.
|
|
6974
|
+
* The **`ServiceWorker`** interface of the Service Worker API provides a reference to a service worker. Multiple browsing contexts (e.g., pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
|
|
6975
6975
|
* Available only in secure contexts.
|
|
6976
6976
|
*
|
|
6977
6977
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
|
|
@@ -6980,19 +6980,19 @@ interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
|
6980
6980
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
|
|
6981
6981
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
6982
6982
|
/**
|
|
6983
|
-
* Returns the
|
|
6983
|
+
* Returns the ServiceWorker serialized script URL defined as part of ServiceWorkerRegistration. Must be on the same origin as the document that registers the ServiceWorker.
|
|
6984
6984
|
*
|
|
6985
6985
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL)
|
|
6986
6986
|
*/
|
|
6987
6987
|
readonly scriptURL: string;
|
|
6988
6988
|
/**
|
|
6989
|
-
* The **`state`** read-only property of the ServiceWorker interface returns a string representing the current state of the service worker.
|
|
6989
|
+
* The **`state`** read-only property of the ServiceWorker interface returns a string representing the current state of the service worker. It can be one of the following values: parsed, installing, installed, activating, activated, or redundant.
|
|
6990
6990
|
*
|
|
6991
6991
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state)
|
|
6992
6992
|
*/
|
|
6993
6993
|
readonly state: ServiceWorkerState;
|
|
6994
6994
|
/**
|
|
6995
|
-
* The **`postMessage()`** method of the ServiceWorker interface sends a message to the worker.
|
|
6995
|
+
* The **`postMessage()`** method of the ServiceWorker interface sends a message to the worker. The first parameter is the data to send to the worker. The data may be any JavaScript object which can be handled by the structured clone algorithm.
|
|
6996
6996
|
*
|
|
6997
6997
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage)
|
|
6998
6998
|
*/
|
|
@@ -7023,7 +7023,7 @@ interface ServiceWorkerContainerEventMap {
|
|
|
7023
7023
|
*/
|
|
7024
7024
|
interface ServiceWorkerContainer extends EventTarget {
|
|
7025
7025
|
/**
|
|
7026
|
-
* The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active
|
|
7026
|
+
* The **`controller`** read-only property of the ServiceWorkerContainer interface represents the active service worker controlling the current page (associated with this ServiceWorkerContainer), or null if the page has no active or activating service worker.
|
|
7027
7027
|
*
|
|
7028
7028
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller)
|
|
7029
7029
|
*/
|
|
@@ -7041,25 +7041,25 @@ interface ServiceWorkerContainer extends EventTarget {
|
|
|
7041
7041
|
*/
|
|
7042
7042
|
readonly ready: Promise<ServiceWorkerRegistration>;
|
|
7043
7043
|
/**
|
|
7044
|
-
* The **`getRegistration()`** method of the ServiceWorkerContainer interface gets a ServiceWorkerRegistration object whose scope URL matches the provided client URL.
|
|
7044
|
+
* The **`getRegistration()`** method of the ServiceWorkerContainer interface gets a ServiceWorkerRegistration object whose scope URL matches the provided client URL. The method returns a Promise that resolves to a ServiceWorkerRegistration or undefined.
|
|
7045
7045
|
*
|
|
7046
7046
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration)
|
|
7047
7047
|
*/
|
|
7048
7048
|
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
|
|
7049
7049
|
/**
|
|
7050
|
-
* The **`getRegistrations()`** method of the ServiceWorkerContainer interface gets all ServiceWorkerRegistrations associated with a
|
|
7050
|
+
* The **`getRegistrations()`** method of the ServiceWorkerContainer interface gets all ServiceWorkerRegistrations associated with a ServiceWorkerContainer, in an array. The method returns a Promise that resolves to an array of ServiceWorkerRegistration.
|
|
7051
7051
|
*
|
|
7052
7052
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations)
|
|
7053
7053
|
*/
|
|
7054
7054
|
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
|
|
7055
7055
|
/**
|
|
7056
|
-
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope.
|
|
7056
|
+
* The **`register()`** method of the ServiceWorkerContainer interface creates or updates a ServiceWorkerRegistration for the given scope. If successful, the registration associates the provided script URL to a scope, which is subsequently used for matching documents to a specific service worker.
|
|
7057
7057
|
*
|
|
7058
7058
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register)
|
|
7059
7059
|
*/
|
|
7060
7060
|
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
|
|
7061
7061
|
/**
|
|
7062
|
-
* The **`startMessages()`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()).
|
|
7062
|
+
* The **`startMessages()`** method of the ServiceWorkerContainer interface explicitly starts the flow of messages being dispatched from a service worker to pages under its control (e.g., sent via Client.postMessage()). This can be used to react to sent messages earlier, even before that page's content has finished loading.
|
|
7063
7063
|
*
|
|
7064
7064
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages)
|
|
7065
7065
|
*/
|
|
@@ -7096,7 +7096,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
7096
7096
|
*/
|
|
7097
7097
|
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
7098
7098
|
/**
|
|
7099
|
-
* The **`clients`** read-only property of the ServiceWorkerGlobalScope interface returns the
|
|
7099
|
+
* The **`clients`** read-only property of the ServiceWorkerGlobalScope interface returns the Clients object associated with the service worker.
|
|
7100
7100
|
*
|
|
7101
7101
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients)
|
|
7102
7102
|
*/
|
|
@@ -7161,26 +7161,26 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
7161
7161
|
}
|
|
7162
7162
|
|
|
7163
7163
|
/**
|
|
7164
|
-
* The **`ServiceWorkerRegistration`** interface of the Service Worker API represents the service worker registration.
|
|
7164
|
+
* The **`ServiceWorkerRegistration`** interface of the Service Worker API represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
|
|
7165
7165
|
* Available only in secure contexts.
|
|
7166
7166
|
*
|
|
7167
7167
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
|
|
7168
7168
|
*/
|
|
7169
7169
|
interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
7170
7170
|
/**
|
|
7171
|
-
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is
|
|
7171
|
+
* The **`active`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is activating or activated. This property is initially set to null.
|
|
7172
7172
|
*
|
|
7173
7173
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active)
|
|
7174
7174
|
*/
|
|
7175
7175
|
readonly active: ServiceWorker | null;
|
|
7176
7176
|
/**
|
|
7177
|
-
* The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker.
|
|
7177
|
+
* The **`cookies`** read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. This is an entry point for the Cookie Store API.
|
|
7178
7178
|
*
|
|
7179
7179
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/cookies)
|
|
7180
7180
|
*/
|
|
7181
7181
|
readonly cookies: CookieStoreManager;
|
|
7182
7182
|
/**
|
|
7183
|
-
* The **`installing`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is
|
|
7183
|
+
* The **`installing`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is installing. This property is initially set to null.
|
|
7184
7184
|
*
|
|
7185
7185
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing)
|
|
7186
7186
|
*/
|
|
@@ -7194,25 +7194,25 @@ interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
|
7194
7194
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
|
|
7195
7195
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
7196
7196
|
/**
|
|
7197
|
-
* The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control.
|
|
7197
|
+
* The **`scope`** read-only property of the ServiceWorkerRegistration interface returns a string representing a URL that defines a service worker's registration scope; that is, the range of URLs a service worker can control. This is set using the scope parameter specified in the call to ServiceWorkerContainer.register() which registered the service worker.
|
|
7198
7198
|
*
|
|
7199
7199
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope)
|
|
7200
7200
|
*/
|
|
7201
7201
|
readonly scope: string;
|
|
7202
7202
|
/**
|
|
7203
|
-
* The **`updateViaCache`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via
|
|
7203
|
+
* The **`updateViaCache`** read-only property of the ServiceWorkerRegistration interface returns the value of the setting used to determine the circumstances in which the browser will consult the HTTP cache when it tries to update the service worker or any scripts that are imported via importScripts().
|
|
7204
7204
|
*
|
|
7205
7205
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache)
|
|
7206
7206
|
*/
|
|
7207
7207
|
readonly updateViaCache: ServiceWorkerUpdateViaCache;
|
|
7208
7208
|
/**
|
|
7209
|
-
* The **`waiting`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is
|
|
7209
|
+
* The **`waiting`** read-only property of the ServiceWorkerRegistration interface returns a service worker whose ServiceWorker.state is installed. This property is initially set to null.
|
|
7210
7210
|
*
|
|
7211
7211
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting)
|
|
7212
7212
|
*/
|
|
7213
7213
|
readonly waiting: ServiceWorker | null;
|
|
7214
7214
|
/**
|
|
7215
|
-
* The **`getNotifications()`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration.
|
|
7215
|
+
* The **`getNotifications()`** method of the ServiceWorkerRegistration interface returns a list of the notifications in the order that they were created from the current origin via the current service worker registration. Origins can have many active but differently-scoped service worker registrations. Notifications created by one service worker on the same origin will not be available to other active service workers on that same origin.
|
|
7216
7216
|
*
|
|
7217
7217
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications)
|
|
7218
7218
|
*/
|
|
@@ -7224,13 +7224,13 @@ interface ServiceWorkerRegistration extends EventTarget, PushManagerAttribute {
|
|
|
7224
7224
|
*/
|
|
7225
7225
|
showNotification(title: string, options?: NotificationOptions): Promise<void>;
|
|
7226
7226
|
/**
|
|
7227
|
-
* The **`unregister()`** method of the ServiceWorkerRegistration interface unregisters the service worker registration and returns a Promise.
|
|
7227
|
+
* The **`unregister()`** method of the ServiceWorkerRegistration interface unregisters the service worker registration and returns a Promise. The promise will resolve to false if no registration was found, otherwise it resolves to true irrespective of whether unregistration happened or not (it may not unregister if someone else just called ServiceWorkerContainer.register() with the same scope.) The service worker will finish any ongoing operations before it is unregistered.
|
|
7228
7228
|
*
|
|
7229
7229
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister)
|
|
7230
7230
|
*/
|
|
7231
7231
|
unregister(): Promise<boolean>;
|
|
7232
7232
|
/**
|
|
7233
|
-
* The **`update()`** method of the ServiceWorkerRegistration interface attempts to update the service worker.
|
|
7233
|
+
* The **`update()`** method of the ServiceWorkerRegistration interface attempts to update the service worker. It fetches the worker's script URL, and if the new worker is not byte-by-byte identical to the current worker, it installs the new worker. The fetch of the worker bypasses any browser caches if the previous fetch occurred over 24 hours ago.
|
|
7234
7234
|
*
|
|
7235
7235
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update)
|
|
7236
7236
|
*/
|
|
@@ -7247,14 +7247,14 @@ declare var ServiceWorkerRegistration: {
|
|
|
7247
7247
|
};
|
|
7248
7248
|
|
|
7249
7249
|
/**
|
|
7250
|
-
* The **`StorageManager`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage.
|
|
7250
|
+
* The **`StorageManager`** interface of the Storage API provides an interface for managing persistence permissions and estimating available storage. You can get a reference to this interface using either navigator.storage or WorkerNavigator.storage.
|
|
7251
7251
|
* Available only in secure contexts.
|
|
7252
7252
|
*
|
|
7253
7253
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
|
|
7254
7254
|
*/
|
|
7255
7255
|
interface StorageManager {
|
|
7256
7256
|
/**
|
|
7257
|
-
* The **`estimate()`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (
|
|
7257
|
+
* The **`estimate()`** method of the StorageManager interface asks the Storage Manager for how much storage the current origin takes up (usage), and how much space is available (quota).
|
|
7258
7258
|
*
|
|
7259
7259
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate)
|
|
7260
7260
|
*/
|
|
@@ -7266,7 +7266,7 @@ interface StorageManager {
|
|
|
7266
7266
|
*/
|
|
7267
7267
|
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
7268
7268
|
/**
|
|
7269
|
-
* The **`persisted()`** method of the StorageManager interface returns a Promise that resolves to
|
|
7269
|
+
* The **`persisted()`** method of the StorageManager interface returns a Promise that resolves to true if your site's storage bucket is persistent.
|
|
7270
7270
|
*
|
|
7271
7271
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted)
|
|
7272
7272
|
*/
|
|
@@ -7279,13 +7279,13 @@ declare var StorageManager: {
|
|
|
7279
7279
|
};
|
|
7280
7280
|
|
|
7281
7281
|
/**
|
|
7282
|
-
* The **`StylePropertyMapReadOnly`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
|
|
7282
|
+
* The **`StylePropertyMapReadOnly`** interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. Retrieve an instance of this interface using Element.computedStyleMap().
|
|
7283
7283
|
*
|
|
7284
7284
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly)
|
|
7285
7285
|
*/
|
|
7286
7286
|
interface StylePropertyMapReadOnly {
|
|
7287
7287
|
/**
|
|
7288
|
-
* The **`size`** read-only property of the StylePropertyMapReadOnly interface returns an unsigned long integer containing the size of the
|
|
7288
|
+
* The **`size`** read-only property of the StylePropertyMapReadOnly interface returns an unsigned long integer containing the size of the StylePropertyMapReadOnly object.
|
|
7289
7289
|
*
|
|
7290
7290
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size)
|
|
7291
7291
|
*/
|
|
@@ -7303,7 +7303,7 @@ interface StylePropertyMapReadOnly {
|
|
|
7303
7303
|
*/
|
|
7304
7304
|
getAll(property: string): CSSStyleValue[];
|
|
7305
7305
|
/**
|
|
7306
|
-
* The **`has()`** method of the StylePropertyMapReadOnly interface indicates whether the specified property is in the
|
|
7306
|
+
* The **`has()`** method of the StylePropertyMapReadOnly interface indicates whether the specified property is in the StylePropertyMapReadOnly object.
|
|
7307
7307
|
*
|
|
7308
7308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has)
|
|
7309
7309
|
*/
|
|
@@ -7324,7 +7324,7 @@ declare var StylePropertyMapReadOnly: {
|
|
|
7324
7324
|
*/
|
|
7325
7325
|
interface SubtleCrypto {
|
|
7326
7326
|
/**
|
|
7327
|
-
* The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data.
|
|
7327
|
+
* The **`decrypt()`** method of the SubtleCrypto interface decrypts some encrypted data. It takes as arguments a key to decrypt with, some optional extra parameters, and the data to decrypt (also known as "ciphertext"). It returns a Promise which will be fulfilled with the decrypted data (also known as "plaintext").
|
|
7328
7328
|
*
|
|
7329
7329
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt)
|
|
7330
7330
|
*/
|
|
@@ -7342,7 +7342,7 @@ interface SubtleCrypto {
|
|
|
7342
7342
|
*/
|
|
7343
7343
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
7344
7344
|
/**
|
|
7345
|
-
* The **`digest()`** method of the SubtleCrypto interface generates a
|
|
7345
|
+
* The **`digest()`** method of the SubtleCrypto interface generates a digest of the given data, using the specified hash function. A digest is a short fixed-length value derived from some variable-length input. Cryptographic digests should exhibit collision-resistance, meaning that it's hard to come up with two different inputs that have the same digest value.
|
|
7346
7346
|
*
|
|
7347
7347
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest)
|
|
7348
7348
|
*/
|
|
@@ -7384,7 +7384,7 @@ interface SubtleCrypto {
|
|
|
7384
7384
|
*/
|
|
7385
7385
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
7386
7386
|
/**
|
|
7387
|
-
* The **`unwrapKey()`** method of the SubtleCrypto interface
|
|
7387
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface "unwraps" a key. This means that it takes as its input a key that has been exported and then encrypted (also called "wrapped"). It decrypts the key and then imports it, returning a CryptoKey object that can be used in the Web Crypto API.
|
|
7388
7388
|
*
|
|
7389
7389
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
7390
7390
|
*/
|
|
@@ -7396,7 +7396,7 @@ interface SubtleCrypto {
|
|
|
7396
7396
|
*/
|
|
7397
7397
|
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
|
|
7398
7398
|
/**
|
|
7399
|
-
* The **`wrapKey()`** method of the SubtleCrypto interface
|
|
7399
|
+
* The **`wrapKey()`** method of the SubtleCrypto interface "wraps" a key. This means that it exports the key in an external, portable format, then encrypts the exported key. Wrapping a key helps protect it in untrusted environments, such as inside an otherwise unprotected data store or in transmission over an unprotected network.
|
|
7400
7400
|
*
|
|
7401
7401
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey)
|
|
7402
7402
|
*/
|
|
@@ -7409,13 +7409,13 @@ declare var SubtleCrypto: {
|
|
|
7409
7409
|
};
|
|
7410
7410
|
|
|
7411
7411
|
/**
|
|
7412
|
-
* The **`TaskController`** interface of the Prioritized Task Scheduling API represents a controller object that can be used to both abort and change the priority of one or more prioritized tasks.
|
|
7412
|
+
* The **`TaskController`** interface of the Prioritized Task Scheduling API represents a controller object that can be used to both abort and change the priority of one or more prioritized tasks. If there is no need to change task priorities, then AbortController can be used instead.
|
|
7413
7413
|
*
|
|
7414
7414
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController)
|
|
7415
7415
|
*/
|
|
7416
7416
|
interface TaskController extends AbortController {
|
|
7417
7417
|
/**
|
|
7418
|
-
* The **`setPriority()`** method of the TaskController interface can be called to set a new priority for this controller's
|
|
7418
|
+
* The **`setPriority()`** method of the TaskController interface can be called to set a new priority for this controller's signal. If a prioritized task is configured to use the signal, this will also change the task priority.
|
|
7419
7419
|
*
|
|
7420
7420
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskController/setPriority)
|
|
7421
7421
|
*/
|
|
@@ -7428,13 +7428,13 @@ declare var TaskController: {
|
|
|
7428
7428
|
};
|
|
7429
7429
|
|
|
7430
7430
|
/**
|
|
7431
|
-
* The **`TaskPriorityChangeEvent`** is the interface for the
|
|
7431
|
+
* The **`TaskPriorityChangeEvent`** is the interface for the prioritychange event.
|
|
7432
7432
|
*
|
|
7433
7433
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent)
|
|
7434
7434
|
*/
|
|
7435
7435
|
interface TaskPriorityChangeEvent extends Event {
|
|
7436
7436
|
/**
|
|
7437
|
-
* The **`previousPriority`** read-only property of the TaskPriorityChangeEvent interface returns the priority of the corresponding TaskSignal before it was changed and this
|
|
7437
|
+
* The **`previousPriority`** read-only property of the TaskPriorityChangeEvent interface returns the priority of the corresponding TaskSignal before it was changed and this prioritychange event was emitted.
|
|
7438
7438
|
*
|
|
7439
7439
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskPriorityChangeEvent/previousPriority)
|
|
7440
7440
|
*/
|
|
@@ -7474,7 +7474,7 @@ declare var TaskSignal: {
|
|
|
7474
7474
|
prototype: TaskSignal;
|
|
7475
7475
|
new(): TaskSignal;
|
|
7476
7476
|
/**
|
|
7477
|
-
* The **`TaskSignal.any()`** static method takes an iterable of AbortSignal objects and returns a TaskSignal.
|
|
7477
|
+
* The **`TaskSignal.any()`** static method takes an iterable of AbortSignal objects and returns a TaskSignal. The returned task signal is aborted when any of the abort signals is aborted.
|
|
7478
7478
|
*
|
|
7479
7479
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TaskSignal/any_static)
|
|
7480
7480
|
*/
|
|
@@ -7482,7 +7482,7 @@ declare var TaskSignal: {
|
|
|
7482
7482
|
};
|
|
7483
7483
|
|
|
7484
7484
|
/**
|
|
7485
|
-
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as
|
|
7485
|
+
* The **`TextDecoder`** interface represents a decoder for a specific text encoding, such as UTF-8, ISO-8859-2, or GBK. A decoder takes an array of bytes as input and returns a JavaScript string.
|
|
7486
7486
|
*
|
|
7487
7487
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
|
|
7488
7488
|
*/
|
|
@@ -7522,7 +7522,7 @@ interface TextDecoderCommon {
|
|
|
7522
7522
|
}
|
|
7523
7523
|
|
|
7524
7524
|
/**
|
|
7525
|
-
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings.
|
|
7525
|
+
* The **`TextDecoderStream`** interface of the Encoding API converts a stream of text in a binary encoding, such as UTF-8 etc., to a stream of strings. It is the streaming equivalent of TextDecoder.
|
|
7526
7526
|
*
|
|
7527
7527
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream)
|
|
7528
7528
|
*/
|
|
@@ -7537,19 +7537,19 @@ declare var TextDecoderStream: {
|
|
|
7537
7537
|
};
|
|
7538
7538
|
|
|
7539
7539
|
/**
|
|
7540
|
-
* The **`TextEncoder`** interface enables you to
|
|
7540
|
+
* The **`TextEncoder`** interface enables you to encode a JavaScript string using UTF-8.
|
|
7541
7541
|
*
|
|
7542
7542
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
|
|
7543
7543
|
*/
|
|
7544
7544
|
interface TextEncoder extends TextEncoderCommon {
|
|
7545
7545
|
/**
|
|
7546
|
-
* The **`TextEncoder.encode()`** method takes a string as input, and returns a
|
|
7546
|
+
* The **`TextEncoder.encode()`** method takes a string as input, and returns a Uint8Array containing the string encoded using UTF-8.
|
|
7547
7547
|
*
|
|
7548
7548
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
|
|
7549
7549
|
*/
|
|
7550
7550
|
encode(input?: string): Uint8Array<ArrayBuffer>;
|
|
7551
7551
|
/**
|
|
7552
|
-
* 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.
|
|
7552
|
+
* 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. This is potentially more performant than the encode() method — especially when the target buffer is a view into a Wasm heap.
|
|
7553
7553
|
*
|
|
7554
7554
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
|
|
7555
7555
|
*/
|
|
@@ -7571,7 +7571,7 @@ interface TextEncoderCommon {
|
|
|
7571
7571
|
}
|
|
7572
7572
|
|
|
7573
7573
|
/**
|
|
7574
|
-
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding.
|
|
7574
|
+
* The **`TextEncoderStream`** interface of the Encoding API converts a stream of strings into bytes in the UTF-8 encoding. It is the streaming equivalent of TextEncoder.
|
|
7575
7575
|
*
|
|
7576
7576
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream)
|
|
7577
7577
|
*/
|
|
@@ -7586,73 +7586,73 @@ declare var TextEncoderStream: {
|
|
|
7586
7586
|
};
|
|
7587
7587
|
|
|
7588
7588
|
/**
|
|
7589
|
-
* The **`TextMetrics`** interface represents the dimensions of a piece of text in the canvas; a
|
|
7589
|
+
* The **`TextMetrics`** interface represents the dimensions of a piece of text in the canvas; a TextMetrics instance can be retrieved using the CanvasRenderingContext2D.measureText() method.
|
|
7590
7590
|
*
|
|
7591
7591
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
|
|
7592
7592
|
*/
|
|
7593
7593
|
interface TextMetrics {
|
|
7594
7594
|
/**
|
|
7595
|
-
* The read-only **`actualBoundingBoxAscent`** property of the TextMetrics interface is a
|
|
7595
|
+
* The read-only **`actualBoundingBoxAscent`** property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the top of the bounding rectangle used to render the text, in CSS pixels.
|
|
7596
7596
|
*
|
|
7597
7597
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
|
|
7598
7598
|
*/
|
|
7599
7599
|
readonly actualBoundingBoxAscent: number;
|
|
7600
7600
|
/**
|
|
7601
|
-
* The read-only
|
|
7601
|
+
* The read-only **`actualBoundingBoxDescent`** property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle used to render the text, in CSS pixels.
|
|
7602
7602
|
*
|
|
7603
7603
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
|
|
7604
7604
|
*/
|
|
7605
7605
|
readonly actualBoundingBoxDescent: number;
|
|
7606
7606
|
/**
|
|
7607
|
-
* The read-only
|
|
7607
|
+
* The read-only **`actualBoundingBoxLeft`** property of the TextMetrics interface is a double giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text, in CSS pixels; positive numbers indicating a distance going left from the given alignment point.
|
|
7608
7608
|
*
|
|
7609
7609
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
|
|
7610
7610
|
*/
|
|
7611
7611
|
readonly actualBoundingBoxLeft: number;
|
|
7612
7612
|
/**
|
|
7613
|
-
* The read-only
|
|
7613
|
+
* The read-only **`actualBoundingBoxRight`** property of the TextMetrics interface is a double giving the distance parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text, in CSS pixels.
|
|
7614
7614
|
*
|
|
7615
7615
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
|
|
7616
7616
|
*/
|
|
7617
7617
|
readonly actualBoundingBoxRight: number;
|
|
7618
7618
|
/**
|
|
7619
|
-
* The read-only
|
|
7619
|
+
* The read-only **`alphabeticBaseline`** property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the alphabetic baseline of the line box, in CSS pixels.
|
|
7620
7620
|
*
|
|
7621
7621
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
|
|
7622
7622
|
*/
|
|
7623
7623
|
readonly alphabeticBaseline: number;
|
|
7624
7624
|
/**
|
|
7625
|
-
* The read-only
|
|
7625
|
+
* The read-only **`emHeightAscent`** property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top of the em square in the line box, in CSS pixels.
|
|
7626
7626
|
*
|
|
7627
7627
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
|
|
7628
7628
|
*/
|
|
7629
7629
|
readonly emHeightAscent: number;
|
|
7630
7630
|
/**
|
|
7631
|
-
* The read-only
|
|
7631
|
+
* The read-only **`emHeightDescent`** property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom of the em square in the line box, in CSS pixels.
|
|
7632
7632
|
*
|
|
7633
7633
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
|
|
7634
7634
|
*/
|
|
7635
7635
|
readonly emHeightDescent: number;
|
|
7636
7636
|
/**
|
|
7637
|
-
* The read-only
|
|
7637
|
+
* The read-only **`fontBoundingBoxAscent`** property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute, to the top of the highest bounding rectangle of all the fonts used to render the text, in CSS pixels.
|
|
7638
7638
|
*
|
|
7639
7639
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
|
|
7640
7640
|
*/
|
|
7641
7641
|
readonly fontBoundingBoxAscent: number;
|
|
7642
7642
|
/**
|
|
7643
|
-
* The read-only
|
|
7643
|
+
* The read-only **`fontBoundingBoxDescent`** property of the TextMetrics interface returns the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline attribute to the bottom of the bounding rectangle of all the fonts used to render the text, in CSS pixels.
|
|
7644
7644
|
*
|
|
7645
7645
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
|
|
7646
7646
|
*/
|
|
7647
7647
|
readonly fontBoundingBoxDescent: number;
|
|
7648
7648
|
/**
|
|
7649
|
-
* The read-only
|
|
7649
|
+
* The read-only **`hangingBaseline`** property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the hanging baseline of the line box, in CSS pixels.
|
|
7650
7650
|
*
|
|
7651
7651
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
|
|
7652
7652
|
*/
|
|
7653
7653
|
readonly hangingBaseline: number;
|
|
7654
7654
|
/**
|
|
7655
|
-
* The read-only
|
|
7655
|
+
* The read-only **`ideographicBaseline`** property of the TextMetrics interface is a double giving the distance from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the ideographic baseline of the line box, in CSS pixels.
|
|
7656
7656
|
*
|
|
7657
7657
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
|
|
7658
7658
|
*/
|
|
@@ -7671,19 +7671,19 @@ declare var TextMetrics: {
|
|
|
7671
7671
|
};
|
|
7672
7672
|
|
|
7673
7673
|
/**
|
|
7674
|
-
* The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain
|
|
7674
|
+
* The **`TransformStream`** interface of the Streams API represents a concrete implementation of the pipe chain transform stream concept.
|
|
7675
7675
|
*
|
|
7676
7676
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream)
|
|
7677
7677
|
*/
|
|
7678
7678
|
interface TransformStream<I = any, O = any> {
|
|
7679
7679
|
/**
|
|
7680
|
-
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this
|
|
7680
|
+
* The **`readable`** read-only property of the TransformStream interface returns the ReadableStream instance controlled by this TransformStream.
|
|
7681
7681
|
*
|
|
7682
7682
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable)
|
|
7683
7683
|
*/
|
|
7684
7684
|
readonly readable: ReadableStream<O>;
|
|
7685
7685
|
/**
|
|
7686
|
-
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this
|
|
7686
|
+
* The **`writable`** read-only property of the TransformStream interface returns the WritableStream instance controlled by this TransformStream.
|
|
7687
7687
|
*
|
|
7688
7688
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable)
|
|
7689
7689
|
*/
|
|
@@ -7714,7 +7714,7 @@ interface TransformStreamDefaultController<O = any> {
|
|
|
7714
7714
|
*/
|
|
7715
7715
|
enqueue(chunk?: O): void;
|
|
7716
7716
|
/**
|
|
7717
|
-
* The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream.
|
|
7717
|
+
* The **`error()`** method of the TransformStreamDefaultController interface errors both sides of the stream. Any further interactions with it will fail with the given error message, and any chunks in the queue will be discarded.
|
|
7718
7718
|
*
|
|
7719
7719
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error)
|
|
7720
7720
|
*/
|
|
@@ -7733,25 +7733,25 @@ declare var TransformStreamDefaultController: {
|
|
|
7733
7733
|
};
|
|
7734
7734
|
|
|
7735
7735
|
/**
|
|
7736
|
-
* The **`URL`** interface is used to parse, construct, normalize, and encode URL.
|
|
7736
|
+
* The **`URL`** interface is used to parse, construct, normalize, and encode URLs. It works by providing properties which allow you to easily read and modify the components of a URL.
|
|
7737
7737
|
*
|
|
7738
7738
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
|
|
7739
7739
|
*/
|
|
7740
7740
|
interface URL {
|
|
7741
7741
|
/**
|
|
7742
|
-
* The **`hash`** property of the URL interface is a string containing a
|
|
7742
|
+
* The **`hash`** property of the URL interface is a string containing a "#" followed by the fragment identifier of the URL. If the URL does not have a fragment identifier, this property contains an empty string, "".
|
|
7743
7743
|
*
|
|
7744
7744
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash)
|
|
7745
7745
|
*/
|
|
7746
7746
|
hash: string;
|
|
7747
7747
|
/**
|
|
7748
|
-
* The **`host`** property of the URL interface is a string containing the host, which is the
|
|
7748
|
+
* The **`host`** property of the URL interface is a string containing the host, which is the hostname, and then, if the port of the URL is nonempty, a ":", followed by the port of the URL. If the URL does not have a hostname, this property contains an empty string, "".
|
|
7749
7749
|
*
|
|
7750
7750
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host)
|
|
7751
7751
|
*/
|
|
7752
7752
|
host: string;
|
|
7753
7753
|
/**
|
|
7754
|
-
* The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL.
|
|
7754
|
+
* The **`hostname`** property of the URL interface is a string containing either the domain name or IP address of the URL. If the URL does not have a hostname, this property contains an empty string, "". IPv4 and IPv6 addresses are normalized, such as stripping leading zeros, and domain names are converted to IDN.
|
|
7755
7755
|
*
|
|
7756
7756
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname)
|
|
7757
7757
|
*/
|
|
@@ -7770,31 +7770,31 @@ interface URL {
|
|
|
7770
7770
|
*/
|
|
7771
7771
|
readonly origin: string;
|
|
7772
7772
|
/**
|
|
7773
|
-
* The **`password`** property of the URL interface is a string containing the password component of the URL.
|
|
7773
|
+
* The **`password`** property of the URL interface is a string containing the password component of the URL. If the URL does not have a password, this property contains an empty string, "".
|
|
7774
7774
|
*
|
|
7775
7775
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password)
|
|
7776
7776
|
*/
|
|
7777
7777
|
password: string;
|
|
7778
7778
|
/**
|
|
7779
|
-
* The **`pathname`** property of the URL interface represents a location in a hierarchical structure.
|
|
7779
|
+
* The **`pathname`** property of the URL interface represents a location in a hierarchical structure. It is a string constructed from a list of path segments, each of which is prefixed by a / character.
|
|
7780
7780
|
*
|
|
7781
7781
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname)
|
|
7782
7782
|
*/
|
|
7783
7783
|
pathname: string;
|
|
7784
7784
|
/**
|
|
7785
|
-
* The **`port`** property of the URL interface is a string containing the port number of the URL.
|
|
7785
|
+
* The **`port`** property of the URL interface is a string containing the port number of the URL. If the port is the default for the protocol (80 for ws: and http:, 443 for wss: and https:, and 21 for ftp:), this property contains an empty string, "".
|
|
7786
7786
|
*
|
|
7787
7787
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port)
|
|
7788
7788
|
*/
|
|
7789
7789
|
port: string;
|
|
7790
7790
|
/**
|
|
7791
|
-
* The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final
|
|
7791
|
+
* The **`protocol`** property of the URL interface is a string containing the protocol or scheme of the URL, including the final ":".
|
|
7792
7792
|
*
|
|
7793
7793
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol)
|
|
7794
7794
|
*/
|
|
7795
7795
|
protocol: string;
|
|
7796
7796
|
/**
|
|
7797
|
-
* The **`search`** property of the URL interface is a search string, also called a
|
|
7797
|
+
* The **`search`** property of the URL interface is a search string, also called a query string, that is a string containing a "?" followed by the parameters of the URL. If the URL does not have a search query, this property contains an empty string, "".
|
|
7798
7798
|
*
|
|
7799
7799
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search)
|
|
7800
7800
|
*/
|
|
@@ -7806,7 +7806,7 @@ interface URL {
|
|
|
7806
7806
|
*/
|
|
7807
7807
|
readonly searchParams: URLSearchParams;
|
|
7808
7808
|
/**
|
|
7809
|
-
* The **`username`** property of the URL interface is a string containing the username component of the URL.
|
|
7809
|
+
* The **`username`** property of the URL interface is a string containing the username component of the URL. If the URL does not have a username, this property contains an empty string, "".
|
|
7810
7810
|
*
|
|
7811
7811
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username)
|
|
7812
7812
|
*/
|
|
@@ -7837,13 +7837,13 @@ declare var URL: {
|
|
|
7837
7837
|
};
|
|
7838
7838
|
|
|
7839
7839
|
/**
|
|
7840
|
-
* The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern.
|
|
7840
|
+
* The **`URLPattern`** interface of the URL Pattern API matches URLs or parts of URLs against a pattern. The pattern can contain capturing groups that extract parts of the matched URL.
|
|
7841
7841
|
*
|
|
7842
7842
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern)
|
|
7843
7843
|
*/
|
|
7844
7844
|
interface URLPattern {
|
|
7845
7845
|
/**
|
|
7846
|
-
* The **`hasRegExpGroups`** read-only property of the URLPattern interface is a boolean indicating whether or not any of the
|
|
7846
|
+
* 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.
|
|
7847
7847
|
*
|
|
7848
7848
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/hasRegExpGroups)
|
|
7849
7849
|
*/
|
|
@@ -7897,7 +7897,7 @@ interface URLPattern {
|
|
|
7897
7897
|
*/
|
|
7898
7898
|
readonly username: string;
|
|
7899
7899
|
/**
|
|
7900
|
-
* The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or
|
|
7900
|
+
* The **`exec()`** method of the URLPattern interface takes a URL or object of URL parts, and returns either an object containing the results of matching the URL to the pattern, or null if the URL does not match the pattern.
|
|
7901
7901
|
*
|
|
7902
7902
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLPattern/exec)
|
|
7903
7903
|
*/
|
|
@@ -7959,13 +7959,13 @@ interface URLSearchParams {
|
|
|
7959
7959
|
*/
|
|
7960
7960
|
has(name: string, value?: string): boolean;
|
|
7961
7961
|
/**
|
|
7962
|
-
* The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value.
|
|
7962
|
+
* The **`set()`** method of the URLSearchParams interface sets the value associated with a given search parameter to the given value. If there were several matching values, this method deletes the others. If the search parameter doesn't exist, this method creates it.
|
|
7963
7963
|
*
|
|
7964
7964
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
|
|
7965
7965
|
*/
|
|
7966
7966
|
set(name: string, value: string): void;
|
|
7967
7967
|
/**
|
|
7968
|
-
* The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns
|
|
7968
|
+
* The **`URLSearchParams.sort()`** method sorts all key/value pairs contained in this object in place and returns undefined. Key/value pairs are sorted by the values of the UTF-16 code units of the keys. This method uses a stable sorting algorithm (i.e., the relative order between key/value pairs with equal keys will be preserved).
|
|
7969
7969
|
*
|
|
7970
7970
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort)
|
|
7971
7971
|
*/
|
|
@@ -8177,19 +8177,19 @@ interface WEBGL_draw_buffers {
|
|
|
8177
8177
|
}
|
|
8178
8178
|
|
|
8179
8179
|
/**
|
|
8180
|
-
* The
|
|
8180
|
+
* The **`WEBGL_lose_context`** extension is part of the WebGL API and exposes functions to simulate losing and restoring a WebGLRenderingContext.
|
|
8181
8181
|
*
|
|
8182
8182
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context)
|
|
8183
8183
|
*/
|
|
8184
8184
|
interface WEBGL_lose_context {
|
|
8185
8185
|
/**
|
|
8186
|
-
* The
|
|
8186
|
+
* The **`WEBGL_lose_context.loseContext()`** method is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext context.
|
|
8187
8187
|
*
|
|
8188
8188
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext)
|
|
8189
8189
|
*/
|
|
8190
8190
|
loseContext(): void;
|
|
8191
8191
|
/**
|
|
8192
|
-
* The
|
|
8192
|
+
* The **`WEBGL_lose_context.restoreContext()`** method is part of the WebGL API and allows you to simulate restoring the context of a WebGLRenderingContext object.
|
|
8193
8193
|
*
|
|
8194
8194
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext)
|
|
8195
8195
|
*/
|
|
@@ -8197,31 +8197,31 @@ interface WEBGL_lose_context {
|
|
|
8197
8197
|
}
|
|
8198
8198
|
|
|
8199
8199
|
/**
|
|
8200
|
-
* The **`WEBGL_multi_draw`** extension is part of the WebGL API and allows to render more than one primitive with a single function call.
|
|
8200
|
+
* The **`WEBGL_multi_draw`** extension is part of the WebGL API and allows to render more than one primitive with a single function call. This can improve a WebGL application's performance as it reduces binding costs in the renderer and speeds up GPU thread time with uniform data.
|
|
8201
8201
|
*
|
|
8202
8202
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw)
|
|
8203
8203
|
*/
|
|
8204
8204
|
interface WEBGL_multi_draw {
|
|
8205
8205
|
/**
|
|
8206
|
-
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
8206
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArraysInstanced() method.
|
|
8207
8207
|
*
|
|
8208
8208
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
8209
8209
|
*/
|
|
8210
8210
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
8211
8211
|
/**
|
|
8212
|
-
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
8212
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method.
|
|
8213
8213
|
*
|
|
8214
8214
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
8215
8215
|
*/
|
|
8216
8216
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
|
|
8217
8217
|
/**
|
|
8218
|
-
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
8218
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method.
|
|
8219
8219
|
*
|
|
8220
8220
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
8221
8221
|
*/
|
|
8222
8222
|
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
8223
8223
|
/**
|
|
8224
|
-
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
8224
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method.
|
|
8225
8225
|
*
|
|
8226
8226
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
8227
8227
|
*/
|
|
@@ -8229,7 +8229,7 @@ interface WEBGL_multi_draw {
|
|
|
8229
8229
|
}
|
|
8230
8230
|
|
|
8231
8231
|
/**
|
|
8232
|
-
* The
|
|
8232
|
+
* The **`WebGL2RenderingContext`** interface provides the OpenGL ES 3.0 rendering context for the drawing surface of an HTML <canvas> element.
|
|
8233
8233
|
*
|
|
8234
8234
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext)
|
|
8235
8235
|
*/
|
|
@@ -9303,25 +9303,25 @@ interface WebGL2RenderingContextOverloads {
|
|
|
9303
9303
|
}
|
|
9304
9304
|
|
|
9305
9305
|
/**
|
|
9306
|
-
* The
|
|
9306
|
+
* The **`WebGLActiveInfo`** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
|
|
9307
9307
|
*
|
|
9308
9308
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
|
|
9309
9309
|
*/
|
|
9310
9310
|
interface WebGLActiveInfo {
|
|
9311
9311
|
/**
|
|
9312
|
-
* The read-only **`WebGLActiveInfo.name`** property represents the name of the requested data returned by calling the
|
|
9312
|
+
* The read-only **`WebGLActiveInfo.name`** property represents the name of the requested data returned by calling the getActiveAttrib() or getActiveUniform() methods.
|
|
9313
9313
|
*
|
|
9314
9314
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name)
|
|
9315
9315
|
*/
|
|
9316
9316
|
readonly name: string;
|
|
9317
9317
|
/**
|
|
9318
|
-
* The read-only **`WebGLActiveInfo.size`** property is a Number representing the size of the requested data returned by calling the
|
|
9318
|
+
* The read-only **`WebGLActiveInfo.size`** property is a Number representing the size of the requested data returned by calling the getActiveAttrib() or getActiveUniform() methods.
|
|
9319
9319
|
*
|
|
9320
9320
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size)
|
|
9321
9321
|
*/
|
|
9322
9322
|
readonly size: GLint;
|
|
9323
9323
|
/**
|
|
9324
|
-
* The read-only **`WebGLActiveInfo.type`** property represents the type of the requested data returned by calling the
|
|
9324
|
+
* The read-only **`WebGLActiveInfo.type`** property represents the type of the requested data returned by calling the getActiveAttrib() or getActiveUniform() methods.
|
|
9325
9325
|
*
|
|
9326
9326
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type)
|
|
9327
9327
|
*/
|
|
@@ -9334,7 +9334,7 @@ declare var WebGLActiveInfo: {
|
|
|
9334
9334
|
};
|
|
9335
9335
|
|
|
9336
9336
|
/**
|
|
9337
|
-
* The
|
|
9337
|
+
* The **`WebGLBuffer`** interface is part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
|
|
9338
9338
|
*
|
|
9339
9339
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
|
|
9340
9340
|
*/
|
|
@@ -9347,7 +9347,7 @@ declare var WebGLBuffer: {
|
|
|
9347
9347
|
};
|
|
9348
9348
|
|
|
9349
9349
|
/**
|
|
9350
|
-
* The
|
|
9350
|
+
* The **`WebGLContextEvent`** interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
|
|
9351
9351
|
*
|
|
9352
9352
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
|
|
9353
9353
|
*/
|
|
@@ -9366,7 +9366,7 @@ declare var WebGLContextEvent: {
|
|
|
9366
9366
|
};
|
|
9367
9367
|
|
|
9368
9368
|
/**
|
|
9369
|
-
* The
|
|
9369
|
+
* The **`WebGLFramebuffer`** interface is part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
|
|
9370
9370
|
*
|
|
9371
9371
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
|
|
9372
9372
|
*/
|
|
@@ -9392,7 +9392,7 @@ declare var WebGLProgram: {
|
|
|
9392
9392
|
};
|
|
9393
9393
|
|
|
9394
9394
|
/**
|
|
9395
|
-
* The **`WebGLQuery`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information.
|
|
9395
|
+
* The **`WebGLQuery`** interface is part of the WebGL 2 API and provides ways to asynchronously query for information. By default, occlusion queries and primitive queries are available.
|
|
9396
9396
|
*
|
|
9397
9397
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery)
|
|
9398
9398
|
*/
|
|
@@ -9405,7 +9405,7 @@ declare var WebGLQuery: {
|
|
|
9405
9405
|
};
|
|
9406
9406
|
|
|
9407
9407
|
/**
|
|
9408
|
-
* The
|
|
9408
|
+
* The **`WebGLRenderbuffer`** interface is part of the WebGL API and represents a buffer that can contain an image, or that can be a source or target of a rendering operation.
|
|
9409
9409
|
*
|
|
9410
9410
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
|
|
9411
9411
|
*/
|
|
@@ -9418,7 +9418,7 @@ declare var WebGLRenderbuffer: {
|
|
|
9418
9418
|
};
|
|
9419
9419
|
|
|
9420
9420
|
/**
|
|
9421
|
-
* The **`WebGLRenderingContext`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.
|
|
9421
|
+
* The **`WebGLRenderingContext`** interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element.
|
|
9422
9422
|
*
|
|
9423
9423
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
|
|
9424
9424
|
*/
|
|
@@ -10361,7 +10361,7 @@ declare var WebGLSampler: {
|
|
|
10361
10361
|
};
|
|
10362
10362
|
|
|
10363
10363
|
/**
|
|
10364
|
-
* The
|
|
10364
|
+
* The **`WebGLShader`** is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.
|
|
10365
10365
|
*
|
|
10366
10366
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
|
|
10367
10367
|
*/
|
|
@@ -10374,7 +10374,7 @@ declare var WebGLShader: {
|
|
|
10374
10374
|
};
|
|
10375
10375
|
|
|
10376
10376
|
/**
|
|
10377
|
-
* The
|
|
10377
|
+
* The **`WebGLShaderPrecisionFormat`** interface is part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
|
|
10378
10378
|
*
|
|
10379
10379
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
|
|
10380
10380
|
*/
|
|
@@ -10418,7 +10418,7 @@ declare var WebGLSync: {
|
|
|
10418
10418
|
};
|
|
10419
10419
|
|
|
10420
10420
|
/**
|
|
10421
|
-
* The
|
|
10421
|
+
* The **`WebGLTexture`** interface is part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
|
|
10422
10422
|
*
|
|
10423
10423
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
|
|
10424
10424
|
*/
|
|
@@ -10431,7 +10431,7 @@ declare var WebGLTexture: {
|
|
|
10431
10431
|
};
|
|
10432
10432
|
|
|
10433
10433
|
/**
|
|
10434
|
-
* The **`WebGLTransformFeedback`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing.
|
|
10434
|
+
* The **`WebGLTransformFeedback`** interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing. It allows to preserve the post-transform rendering state of an object and resubmit this data multiple times.
|
|
10435
10435
|
*
|
|
10436
10436
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback)
|
|
10437
10437
|
*/
|
|
@@ -10444,7 +10444,7 @@ declare var WebGLTransformFeedback: {
|
|
|
10444
10444
|
};
|
|
10445
10445
|
|
|
10446
10446
|
/**
|
|
10447
|
-
* The
|
|
10447
|
+
* The **`WebGLUniformLocation`** interface is part of the WebGL API and represents the location of a uniform variable in a shader program.
|
|
10448
10448
|
*
|
|
10449
10449
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
|
|
10450
10450
|
*/
|
|
@@ -10481,7 +10481,7 @@ interface WebSocketEventMap {
|
|
|
10481
10481
|
}
|
|
10482
10482
|
|
|
10483
10483
|
/**
|
|
10484
|
-
* The
|
|
10484
|
+
* The **`WebSocket`** object provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
|
|
10485
10485
|
*
|
|
10486
10486
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
10487
10487
|
*/
|
|
@@ -10493,13 +10493,13 @@ interface WebSocket extends EventTarget {
|
|
|
10493
10493
|
*/
|
|
10494
10494
|
binaryType: BinaryType;
|
|
10495
10495
|
/**
|
|
10496
|
-
* The **`WebSocket.bufferedAmount`** read-only property returns the number of bytes of data that have been queued using calls to
|
|
10496
|
+
* The **`WebSocket.bufferedAmount`** read-only property returns the number of bytes of data that have been queued using calls to send() but not yet transmitted to the network. This value resets to zero once all queued data has been sent. This value does not reset to zero when the connection is closed; if you keep calling send(), this will continue to climb.
|
|
10497
10497
|
*
|
|
10498
10498
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
|
|
10499
10499
|
*/
|
|
10500
10500
|
readonly bufferedAmount: number;
|
|
10501
10501
|
/**
|
|
10502
|
-
* The **`WebSocket.extensions`** read-only property returns the extensions selected by the server.
|
|
10502
|
+
* The **`WebSocket.extensions`** read-only property returns the extensions selected by the server. This is currently only the empty string or a list of extensions as negotiated by the connection.
|
|
10503
10503
|
*
|
|
10504
10504
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
|
|
10505
10505
|
*/
|
|
@@ -10513,7 +10513,7 @@ interface WebSocket extends EventTarget {
|
|
|
10513
10513
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
|
|
10514
10514
|
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
10515
10515
|
/**
|
|
10516
|
-
* The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the
|
|
10516
|
+
* The **`WebSocket.protocol`** read-only property returns the name of the sub-protocol the server selected; this will be one of the strings specified in the protocols parameter when creating the WebSocket object, or the empty string if no connection is established.
|
|
10517
10517
|
*
|
|
10518
10518
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
|
|
10519
10519
|
*/
|
|
@@ -10531,17 +10531,17 @@ interface WebSocket extends EventTarget {
|
|
|
10531
10531
|
*/
|
|
10532
10532
|
readonly url: string;
|
|
10533
10533
|
/**
|
|
10534
|
-
* The **`WebSocket.close()`** method closes the WebSocket connection or connection attempt, if any.
|
|
10534
|
+
* The **`WebSocket.close()`** method closes the WebSocket connection or connection attempt, if any. If the connection is already CLOSED, this method does nothing.
|
|
10535
10535
|
*
|
|
10536
10536
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
|
|
10537
10537
|
*/
|
|
10538
10538
|
close(code?: number, reason?: string): void;
|
|
10539
10539
|
/**
|
|
10540
|
-
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of
|
|
10540
|
+
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of bufferedAmount by the number of bytes needed to contain the data. If the data can't be sent (for example, because it needs to be buffered but the buffer is full), the socket is closed automatically. The browser will throw an exception if you call send() when the connection is in the CONNECTING state. If you call send() when the connection is in the CLOSING or CLOSED states, the browser will silently discard the data.
|
|
10541
10541
|
*
|
|
10542
10542
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
|
|
10543
10543
|
*/
|
|
10544
|
-
send(data:
|
|
10544
|
+
send(data: BufferSource | Blob | string): void;
|
|
10545
10545
|
readonly CONNECTING: 0;
|
|
10546
10546
|
readonly OPEN: 1;
|
|
10547
10547
|
readonly CLOSING: 2;
|
|
@@ -10581,13 +10581,13 @@ interface WebTransport {
|
|
|
10581
10581
|
*/
|
|
10582
10582
|
readonly datagrams: WebTransportDatagramDuplexStream;
|
|
10583
10583
|
/**
|
|
10584
|
-
* The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server.
|
|
10584
|
+
* The **`incomingBidirectionalStreams`** read-only property of the WebTransport interface represents one or more bidirectional streams opened by the server. Returns a ReadableStream of WebTransportBidirectionalStream objects. Each one can be used to reliably read data from the server and write data back to it.
|
|
10585
10585
|
*
|
|
10586
10586
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams)
|
|
10587
10587
|
*/
|
|
10588
10588
|
readonly incomingBidirectionalStreams: ReadableStream;
|
|
10589
10589
|
/**
|
|
10590
|
-
* The **`incomingUnidirectionalStreams`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server.
|
|
10590
|
+
* The **`incomingUnidirectionalStreams`** read-only property of the WebTransport interface represents one or more unidirectional streams opened by the server. Returns a ReadableStream of WebTransportReceiveStream objects. Each one can be used to reliably read data from the server.
|
|
10591
10591
|
*
|
|
10592
10592
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams)
|
|
10593
10593
|
*/
|
|
@@ -10624,7 +10624,7 @@ declare var WebTransport: {
|
|
|
10624
10624
|
};
|
|
10625
10625
|
|
|
10626
10626
|
/**
|
|
10627
|
-
* The **`WebTransportBidirectionalStream`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport.
|
|
10627
|
+
* The **`WebTransportBidirectionalStream`** interface of the WebTransport API represents a bidirectional stream created by a server or a client that can be used for reliable transport. Provides access to a WebTransportReceiveStream for reading incoming data, and a WebTransportSendStream for writing outgoing data.
|
|
10628
10628
|
* Available only in secure contexts.
|
|
10629
10629
|
*
|
|
10630
10630
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
|
|
@@ -10650,14 +10650,14 @@ declare var WebTransportBidirectionalStream: {
|
|
|
10650
10650
|
};
|
|
10651
10651
|
|
|
10652
10652
|
/**
|
|
10653
|
-
* The **`WebTransportDatagramDuplexStream`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server.
|
|
10653
|
+
* The **`WebTransportDatagramDuplexStream`** interface of the WebTransport API represents a duplex stream that can be used for unreliable transport of datagrams between client and server. Provides access to a ReadableStream for reading incoming datagrams, a WritableStream for writing outgoing datagrams, and various settings and statistics related to the stream.
|
|
10654
10654
|
* Available only in secure contexts.
|
|
10655
10655
|
*
|
|
10656
10656
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
|
|
10657
10657
|
*/
|
|
10658
10658
|
interface WebTransportDatagramDuplexStream {
|
|
10659
10659
|
/**
|
|
10660
|
-
* The **`incomingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data — this is the maximum size, in chunks, that the incoming ReadableStream's internal queue can reach before it is considered full.
|
|
10660
|
+
* The **`incomingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for incoming chunks of data — this is the maximum size, in chunks, that the incoming ReadableStream's internal queue can reach before it is considered full. See Internal queues and queuing strategies for more information.
|
|
10661
10661
|
*
|
|
10662
10662
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark)
|
|
10663
10663
|
*/
|
|
@@ -10669,13 +10669,13 @@ interface WebTransportDatagramDuplexStream {
|
|
|
10669
10669
|
*/
|
|
10670
10670
|
incomingMaxAge: number | null;
|
|
10671
10671
|
/**
|
|
10672
|
-
* The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to
|
|
10672
|
+
* The **`maxDatagramSize`** read-only property of the WebTransportDatagramDuplexStream interface returns the maximum allowable size of outgoing datagrams, in bytes, that can be written to writable.
|
|
10673
10673
|
*
|
|
10674
10674
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize)
|
|
10675
10675
|
*/
|
|
10676
10676
|
readonly maxDatagramSize: number;
|
|
10677
10677
|
/**
|
|
10678
|
-
* The **`outgoingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data — this is the maximum size, in chunks, that the outgoing WritableStream's internal queue can reach before it is considered full.
|
|
10678
|
+
* The **`outgoingHighWaterMark`** property of the WebTransportDatagramDuplexStream interface gets or sets the high water mark for outgoing chunks of data — this is the maximum size, in chunks, that the outgoing WritableStream's internal queue can reach before it is considered full. See Internal queues and queuing strategies for more information.
|
|
10679
10679
|
*
|
|
10680
10680
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark)
|
|
10681
10681
|
*/
|
|
@@ -10715,7 +10715,7 @@ interface WebTransportError extends DOMException {
|
|
|
10715
10715
|
*/
|
|
10716
10716
|
readonly source: WebTransportErrorSource;
|
|
10717
10717
|
/**
|
|
10718
|
-
* The **`streamErrorCode`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or
|
|
10718
|
+
* The **`streamErrorCode`** read-only property of the WebTransportError interface returns a number in the range 0-255 indicating the application protocol error code for this error, or null if one is not available.
|
|
10719
10719
|
*
|
|
10720
10720
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode)
|
|
10721
10721
|
*/
|
|
@@ -10728,7 +10728,7 @@ declare var WebTransportError: {
|
|
|
10728
10728
|
};
|
|
10729
10729
|
|
|
10730
10730
|
/**
|
|
10731
|
-
* The
|
|
10731
|
+
* The **`WindowClient`** interface of the ServiceWorker API represents the scope of a service worker client that is a document in a browsing context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
|
|
10732
10732
|
*
|
|
10733
10733
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
|
|
10734
10734
|
*/
|
|
@@ -10740,7 +10740,7 @@ interface WindowClient extends Client {
|
|
|
10740
10740
|
*/
|
|
10741
10741
|
readonly focused: boolean;
|
|
10742
10742
|
/**
|
|
10743
|
-
* The **`visibilityState`** read-only property of the WindowClient interface indicates the visibility of the current client.
|
|
10743
|
+
* The **`visibilityState`** read-only property of the WindowClient interface indicates the visibility of the current client. This value can be one of "hidden", "visible", or "prerender".
|
|
10744
10744
|
*
|
|
10745
10745
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState)
|
|
10746
10746
|
*/
|
|
@@ -10820,19 +10820,19 @@ interface WorkerGlobalScopeEventMap {
|
|
|
10820
10820
|
}
|
|
10821
10821
|
|
|
10822
10822
|
/**
|
|
10823
|
-
* The **`WorkerGlobalScope`** interface of the Web Workers API is an interface representing the scope of any worker.
|
|
10823
|
+
* The **`WorkerGlobalScope`** interface of the Web Workers API is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop.
|
|
10824
10824
|
*
|
|
10825
10825
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)
|
|
10826
10826
|
*/
|
|
10827
10827
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
10828
10828
|
/**
|
|
10829
|
-
* The **`location`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
|
|
10829
|
+
* The **`location`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
10830
10830
|
*
|
|
10831
10831
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
10832
10832
|
*/
|
|
10833
10833
|
readonly location: WorkerLocation;
|
|
10834
10834
|
/**
|
|
10835
|
-
* The **`navigator`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
|
|
10835
|
+
* The **`navigator`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker. It is a specific navigator object, mostly a subset of the Navigator for browsing scopes, but adapted to workers.
|
|
10836
10836
|
*
|
|
10837
10837
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
|
|
10838
10838
|
*/
|
|
@@ -10850,7 +10850,7 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
10850
10850
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
|
|
10851
10851
|
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
10852
10852
|
/**
|
|
10853
|
-
* The **`self`** read-only property of the WorkerGlobalScope interface returns a reference to the
|
|
10853
|
+
* The **`self`** read-only property of the WorkerGlobalScope interface returns a reference to the WorkerGlobalScope itself. Most of the time it is a specific scope like DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, or ServiceWorkerGlobalScope.
|
|
10854
10854
|
*
|
|
10855
10855
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
|
|
10856
10856
|
*/
|
|
@@ -10873,25 +10873,25 @@ declare var WorkerGlobalScope: {
|
|
|
10873
10873
|
};
|
|
10874
10874
|
|
|
10875
10875
|
/**
|
|
10876
|
-
* The **`WorkerLocation`** interface defines the absolute location of the script executed by the Worker.
|
|
10876
|
+
* The **`WorkerLocation`** interface defines the absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.
|
|
10877
10877
|
*
|
|
10878
10878
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
|
|
10879
10879
|
*/
|
|
10880
10880
|
interface WorkerLocation {
|
|
10881
10881
|
/**
|
|
10882
|
-
* The **`hash`** property of a WorkerLocation object returns the
|
|
10882
|
+
* The **`hash`** property of a WorkerLocation object returns the hash part of the worker's location.
|
|
10883
10883
|
*
|
|
10884
10884
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash)
|
|
10885
10885
|
*/
|
|
10886
10886
|
readonly hash: string;
|
|
10887
10887
|
/**
|
|
10888
|
-
* The **`host`** property of a WorkerLocation object returns the
|
|
10888
|
+
* The **`host`** property of a WorkerLocation object returns the host part of the worker's location.
|
|
10889
10889
|
*
|
|
10890
10890
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host)
|
|
10891
10891
|
*/
|
|
10892
10892
|
readonly host: string;
|
|
10893
10893
|
/**
|
|
10894
|
-
* The **`hostname`** property of a WorkerLocation object returns the
|
|
10894
|
+
* The **`hostname`** property of a WorkerLocation object returns the hostname part of the worker's location.
|
|
10895
10895
|
*
|
|
10896
10896
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname)
|
|
10897
10897
|
*/
|
|
@@ -10904,31 +10904,31 @@ interface WorkerLocation {
|
|
|
10904
10904
|
readonly href: string;
|
|
10905
10905
|
toString(): string;
|
|
10906
10906
|
/**
|
|
10907
|
-
* The **`origin`** property of a WorkerLocation object returns the worker's
|
|
10907
|
+
* The **`origin`** property of a WorkerLocation object returns the worker's origin.
|
|
10908
10908
|
*
|
|
10909
10909
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin)
|
|
10910
10910
|
*/
|
|
10911
10911
|
readonly origin: string;
|
|
10912
10912
|
/**
|
|
10913
|
-
* The **`pathname`** property of a WorkerLocation object returns the
|
|
10913
|
+
* The **`pathname`** property of a WorkerLocation object returns the pathname part of the worker's location.
|
|
10914
10914
|
*
|
|
10915
10915
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname)
|
|
10916
10916
|
*/
|
|
10917
10917
|
readonly pathname: string;
|
|
10918
10918
|
/**
|
|
10919
|
-
* The **`port`** property of a WorkerLocation object returns the
|
|
10919
|
+
* The **`port`** property of a WorkerLocation object returns the port part of the worker's location.
|
|
10920
10920
|
*
|
|
10921
10921
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port)
|
|
10922
10922
|
*/
|
|
10923
10923
|
readonly port: string;
|
|
10924
10924
|
/**
|
|
10925
|
-
* The **`protocol`** property of a WorkerLocation object returns the
|
|
10925
|
+
* The **`protocol`** property of a WorkerLocation object returns the protocol part of the worker's location.
|
|
10926
10926
|
*
|
|
10927
10927
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol)
|
|
10928
10928
|
*/
|
|
10929
10929
|
readonly protocol: string;
|
|
10930
10930
|
/**
|
|
10931
|
-
* The **`search`** property of a WorkerLocation object returns the
|
|
10931
|
+
* The **`search`** property of a WorkerLocation object returns the search part of the worker's location.
|
|
10932
10932
|
*
|
|
10933
10933
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search)
|
|
10934
10934
|
*/
|
|
@@ -10941,7 +10941,7 @@ declare var WorkerLocation: {
|
|
|
10941
10941
|
};
|
|
10942
10942
|
|
|
10943
10943
|
/**
|
|
10944
|
-
* The **`WorkerNavigator`** interface represents a subset of the Navigator interface allowed to be accessed from a Worker.
|
|
10944
|
+
* The **`WorkerNavigator`** interface represents a subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the self.navigator property.
|
|
10945
10945
|
*
|
|
10946
10946
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
|
|
10947
10947
|
*/
|
|
@@ -10973,13 +10973,13 @@ declare var WorkerNavigator: {
|
|
|
10973
10973
|
};
|
|
10974
10974
|
|
|
10975
10975
|
/**
|
|
10976
|
-
* The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink.
|
|
10976
|
+
* The **`WritableStream`** interface of the Streams API provides a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
|
|
10977
10977
|
*
|
|
10978
10978
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
|
|
10979
10979
|
*/
|
|
10980
10980
|
interface WritableStream<W = any> {
|
|
10981
10981
|
/**
|
|
10982
|
-
* The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the
|
|
10982
|
+
* The **`locked`** read-only property of the WritableStream interface returns a boolean indicating whether the WritableStream is locked to a writer.
|
|
10983
10983
|
*
|
|
10984
10984
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked)
|
|
10985
10985
|
*/
|
|
@@ -10991,13 +10991,13 @@ interface WritableStream<W = any> {
|
|
|
10991
10991
|
*/
|
|
10992
10992
|
abort(reason?: any): Promise<void>;
|
|
10993
10993
|
/**
|
|
10994
|
-
* The **`close()`** method of the WritableStream interface closes the associated stream.
|
|
10994
|
+
* The **`close()`** method of the WritableStream interface closes the associated stream. All chunks written before this method is called are sent before the returned promise is fulfilled.
|
|
10995
10995
|
*
|
|
10996
10996
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close)
|
|
10997
10997
|
*/
|
|
10998
10998
|
close(): Promise<void>;
|
|
10999
10999
|
/**
|
|
11000
|
-
* The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance.
|
|
11000
|
+
* The **`getWriter()`** method of the WritableStream interface returns a new instance of WritableStreamDefaultWriter and locks the stream to that instance. While the stream is locked, no other writer can be acquired until this one is released.
|
|
11001
11001
|
*
|
|
11002
11002
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter)
|
|
11003
11003
|
*/
|
|
@@ -11010,7 +11010,7 @@ declare var WritableStream: {
|
|
|
11010
11010
|
};
|
|
11011
11011
|
|
|
11012
11012
|
/**
|
|
11013
|
-
* The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state.
|
|
11013
|
+
* The **`WritableStreamDefaultController`** interface of the Streams API represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
|
|
11014
11014
|
*
|
|
11015
11015
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
|
|
11016
11016
|
*/
|
|
@@ -11035,7 +11035,7 @@ declare var WritableStreamDefaultController: {
|
|
|
11035
11035
|
};
|
|
11036
11036
|
|
|
11037
11037
|
/**
|
|
11038
|
-
* The **`WritableStreamDefaultWriter`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the
|
|
11038
|
+
* The **`WritableStreamDefaultWriter`** interface of the Streams API is the object returned by WritableStream.getWriter() and once created locks the writer to the WritableStream ensuring that no other streams can write to the underlying sink.
|
|
11039
11039
|
*
|
|
11040
11040
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
|
|
11041
11041
|
*/
|
|
@@ -11071,7 +11071,7 @@ interface WritableStreamDefaultWriter<W = any> {
|
|
|
11071
11071
|
*/
|
|
11072
11072
|
close(): Promise<void>;
|
|
11073
11073
|
/**
|
|
11074
|
-
* The **`releaseLock()`** method of the WritableStreamDefaultWriter interface releases the writer's lock on the corresponding stream.
|
|
11074
|
+
* The **`releaseLock()`** method of the WritableStreamDefaultWriter interface releases the writer's lock on the corresponding stream. After the lock is released, the writer is no longer active. If the associated stream is errored when the lock is released, the writer will appear errored in the same way from now on; otherwise, the writer will appear closed.
|
|
11075
11075
|
*
|
|
11076
11076
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock)
|
|
11077
11077
|
*/
|
|
@@ -11106,19 +11106,19 @@ declare namespace WebAssembly {
|
|
|
11106
11106
|
*/
|
|
11107
11107
|
interface Exception {
|
|
11108
11108
|
/**
|
|
11109
|
-
* The read-only **`stack`** property of an object instance of type
|
|
11109
|
+
* The read-only **`stack`** property of an object instance of type WebAssembly.Exception may contain a stack trace.
|
|
11110
11110
|
*
|
|
11111
11111
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/stack)
|
|
11112
11112
|
*/
|
|
11113
11113
|
readonly stack: string | undefined;
|
|
11114
11114
|
/**
|
|
11115
|
-
* The **`getArg()`** prototype method of the
|
|
11115
|
+
* The **`getArg()`** prototype method of the Exception object can be used to get the value of a specified item in the exception's data arguments.
|
|
11116
11116
|
*
|
|
11117
11117
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/getArg)
|
|
11118
11118
|
*/
|
|
11119
11119
|
getArg(index: number): any;
|
|
11120
11120
|
/**
|
|
11121
|
-
* The **`is()`** prototype method of the
|
|
11121
|
+
* The **`is()`** prototype method of the Exception object can be used to test if the Exception matches a given tag.
|
|
11122
11122
|
*
|
|
11123
11123
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception/is)
|
|
11124
11124
|
*/
|
|
@@ -11131,7 +11131,7 @@ declare namespace WebAssembly {
|
|
|
11131
11131
|
};
|
|
11132
11132
|
|
|
11133
11133
|
/**
|
|
11134
|
-
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more
|
|
11134
|
+
* A **`WebAssembly.Global`** object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more WebAssembly.Module instances. This allows dynamic linking of multiple modules.
|
|
11135
11135
|
*
|
|
11136
11136
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global)
|
|
11137
11137
|
*/
|
|
@@ -11146,13 +11146,13 @@ declare namespace WebAssembly {
|
|
|
11146
11146
|
};
|
|
11147
11147
|
|
|
11148
11148
|
/**
|
|
11149
|
-
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a
|
|
11149
|
+
* A **`WebAssembly.Instance`** object is a stateful, executable instance of a WebAssembly.Module. Instance objects contain all the Exported WebAssembly functions that allow calling into WebAssembly code from JavaScript.
|
|
11150
11150
|
*
|
|
11151
11151
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance)
|
|
11152
11152
|
*/
|
|
11153
11153
|
interface Instance {
|
|
11154
11154
|
/**
|
|
11155
|
-
* The **`exports`** read-only property of the
|
|
11155
|
+
* The **`exports`** read-only property of the WebAssembly.Instance object prototype returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript.
|
|
11156
11156
|
*
|
|
11157
11157
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance/exports)
|
|
11158
11158
|
*/
|
|
@@ -11174,19 +11174,19 @@ declare namespace WebAssembly {
|
|
|
11174
11174
|
};
|
|
11175
11175
|
|
|
11176
11176
|
/**
|
|
11177
|
-
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a
|
|
11177
|
+
* The **`WebAssembly.Memory`** object is a resizable ArrayBuffer or SharedArrayBuffer that holds raw bytes of memory accessed by a WebAssembly.Instance.
|
|
11178
11178
|
*
|
|
11179
11179
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory)
|
|
11180
11180
|
*/
|
|
11181
11181
|
interface Memory {
|
|
11182
11182
|
/**
|
|
11183
|
-
* The read-only **`buffer`** prototype property of the
|
|
11183
|
+
* The read-only **`buffer`** prototype property of the WebAssembly.Memory object returns the buffer contained in the memory. Depending on whether or not the memory was constructed with shared: true, the buffer is either an ArrayBuffer or a SharedArrayBuffer.
|
|
11184
11184
|
*
|
|
11185
11185
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/buffer)
|
|
11186
11186
|
*/
|
|
11187
11187
|
readonly buffer: ArrayBuffer;
|
|
11188
11188
|
/**
|
|
11189
|
-
* The **`grow()`** prototype method of the
|
|
11189
|
+
* The **`grow()`** prototype method of the WebAssembly.Memory object increases the size of the memory instance by a specified number of WebAssembly pages.
|
|
11190
11190
|
*
|
|
11191
11191
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory/grow)
|
|
11192
11192
|
*/
|
|
@@ -11210,19 +11210,19 @@ declare namespace WebAssembly {
|
|
|
11210
11210
|
prototype: Module;
|
|
11211
11211
|
new(bytes: BufferSource, options?: WebAssemblyCompileOptions): Module;
|
|
11212
11212
|
/**
|
|
11213
|
-
* The
|
|
11213
|
+
* The WebAssembly.**`Module.customSections()`** static method returns a copy of the contents of all custom sections in the given module with the given string name.
|
|
11214
11214
|
*
|
|
11215
11215
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/customSections_static)
|
|
11216
11216
|
*/
|
|
11217
11217
|
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
|
|
11218
11218
|
/**
|
|
11219
|
-
* The
|
|
11219
|
+
* The WebAssembly.**`Module.exports()`** static method returns an array containing descriptions of all the declared exports of the given Module.
|
|
11220
11220
|
*
|
|
11221
11221
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/exports_static)
|
|
11222
11222
|
*/
|
|
11223
11223
|
exports(moduleObject: Module): ModuleExportDescriptor[];
|
|
11224
11224
|
/**
|
|
11225
|
-
* The
|
|
11225
|
+
* The WebAssembly.**`Module.imports()`** static method returns an array containing descriptions of all the declared imports of the given Module.
|
|
11226
11226
|
*
|
|
11227
11227
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module/imports_static)
|
|
11228
11228
|
*/
|
|
@@ -11239,31 +11239,31 @@ declare namespace WebAssembly {
|
|
|
11239
11239
|
};
|
|
11240
11240
|
|
|
11241
11241
|
/**
|
|
11242
|
-
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references.
|
|
11242
|
+
* The **`WebAssembly.Table`** object is a JavaScript wrapper object — an array-like structure representing a WebAssembly table, which stores homogeneous references. A table created by JavaScript or in WebAssembly code will be accessible and mutable from both JavaScript and WebAssembly.
|
|
11243
11243
|
*
|
|
11244
11244
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table)
|
|
11245
11245
|
*/
|
|
11246
11246
|
interface Table {
|
|
11247
11247
|
/**
|
|
11248
|
-
* The read-only **`length`** prototype property of the
|
|
11248
|
+
* The read-only **`length`** prototype property of the WebAssembly.Table object returns the length of the table, i.e., the number of elements in the table.
|
|
11249
11249
|
*
|
|
11250
11250
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/length)
|
|
11251
11251
|
*/
|
|
11252
11252
|
readonly length: AddressValue;
|
|
11253
11253
|
/**
|
|
11254
|
-
* The **`get()`** prototype method of the
|
|
11254
|
+
* The **`get()`** prototype method of the WebAssembly.Table() object retrieves the element stored at a given index.
|
|
11255
11255
|
*
|
|
11256
11256
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/get)
|
|
11257
11257
|
*/
|
|
11258
11258
|
get(index: AddressValue): any;
|
|
11259
11259
|
/**
|
|
11260
|
-
* The **`grow()`** prototype method of the
|
|
11260
|
+
* The **`grow()`** prototype method of the WebAssembly.Table object increases the size of the Table instance by a specified number of elements, filled with the provided value.
|
|
11261
11261
|
*
|
|
11262
11262
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/grow)
|
|
11263
11263
|
*/
|
|
11264
11264
|
grow(delta: AddressValue, value?: any): AddressValue;
|
|
11265
11265
|
/**
|
|
11266
|
-
* The **`set()`** prototype method of the
|
|
11266
|
+
* The **`set()`** prototype method of the WebAssembly.Table object mutates a reference stored at a given index to a different value.
|
|
11267
11267
|
*
|
|
11268
11268
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table/set)
|
|
11269
11269
|
*/
|
|
@@ -11276,7 +11276,7 @@ declare namespace WebAssembly {
|
|
|
11276
11276
|
};
|
|
11277
11277
|
|
|
11278
11278
|
/**
|
|
11279
|
-
* The **`WebAssembly.Tag`** object defines a
|
|
11279
|
+
* The **`WebAssembly.Tag`** object defines a type of a WebAssembly exception that can be thrown to/from WebAssembly code.
|
|
11280
11280
|
*
|
|
11281
11281
|
* [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag)
|
|
11282
11282
|
*/
|
|
@@ -11378,7 +11378,7 @@ declare namespace WebAssembly {
|
|
|
11378
11378
|
*/
|
|
11379
11379
|
interface Console {
|
|
11380
11380
|
/**
|
|
11381
|
-
* The **`console.assert()`** static method writes an error message to the console if the assertion is false.
|
|
11381
|
+
* The **`console.assert()`** static method writes an error message to the console if the assertion is false. If the assertion is true, nothing happens.
|
|
11382
11382
|
*
|
|
11383
11383
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static)
|
|
11384
11384
|
*/
|
|
@@ -11390,61 +11390,61 @@ interface Console {
|
|
|
11390
11390
|
*/
|
|
11391
11391
|
clear(): void;
|
|
11392
11392
|
/**
|
|
11393
|
-
* The **`console.count()`** static method logs the number of times that this particular call to
|
|
11393
|
+
* The **`console.count()`** static method logs the number of times that this particular call to count() has been called.
|
|
11394
11394
|
*
|
|
11395
11395
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static)
|
|
11396
11396
|
*/
|
|
11397
11397
|
count(label?: string): void;
|
|
11398
11398
|
/**
|
|
11399
|
-
* The **`console.countReset()`** static method resets counter used with console
|
|
11399
|
+
* The **`console.countReset()`** static method resets counter used with console.count().
|
|
11400
11400
|
*
|
|
11401
11401
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static)
|
|
11402
11402
|
*/
|
|
11403
11403
|
countReset(label?: string): void;
|
|
11404
11404
|
/**
|
|
11405
|
-
* The **`console.debug()`** static method outputs a message to the console at the
|
|
11405
|
+
* The **`console.debug()`** static method outputs a message to the console at the "debug" log level. The message is only displayed to the user if the console is configured to display debug output. In most cases, the log level is configured within the console UI. This log level might correspond to the Debug or Verbose log level.
|
|
11406
11406
|
*
|
|
11407
11407
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static)
|
|
11408
11408
|
*/
|
|
11409
11409
|
debug(...data: any[]): void;
|
|
11410
11410
|
/**
|
|
11411
|
-
* The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object.
|
|
11411
|
+
* The **`console.dir()`** static method displays a list of the properties of the specified JavaScript object. In browser consoles, the output is presented as a hierarchical listing with disclosure triangles that let you see the contents of child objects.
|
|
11412
11412
|
*
|
|
11413
11413
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static)
|
|
11414
11414
|
*/
|
|
11415
11415
|
dir(item?: any, options?: any): void;
|
|
11416
11416
|
/**
|
|
11417
|
-
* The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element.
|
|
11417
|
+
* The **`console.dirxml()`** static method displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead. The output is presented as a hierarchical listing of expandable nodes that let you see the contents of child nodes.
|
|
11418
11418
|
*
|
|
11419
11419
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static)
|
|
11420
11420
|
*/
|
|
11421
11421
|
dirxml(...data: any[]): void;
|
|
11422
11422
|
/**
|
|
11423
|
-
* The **`console.error()`** static method outputs a message to the console at the
|
|
11423
|
+
* The **`console.error()`** static method outputs a message to the console at the "error" log level. The message is only displayed to the user if the console is configured to display error output. In most cases, the log level is configured within the console UI. The message may be formatted as an error, with red colors and call stack information.
|
|
11424
11424
|
*
|
|
11425
11425
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static)
|
|
11426
11426
|
*/
|
|
11427
11427
|
error(...data: any[]): void;
|
|
11428
11428
|
/**
|
|
11429
|
-
* The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console
|
|
11429
|
+
* The **`console.group()`** static method creates a new inline group in the Web console log, causing any subsequent console messages to be indented by an additional level, until console.groupEnd() is called.
|
|
11430
11430
|
*
|
|
11431
11431
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static)
|
|
11432
11432
|
*/
|
|
11433
11433
|
group(...data: any[]): void;
|
|
11434
11434
|
/**
|
|
11435
|
-
* The **`console.groupCollapsed()`** static method creates a new inline group in the console.
|
|
11435
|
+
* The **`console.groupCollapsed()`** static method creates a new inline group in the console. Unlike console.group(), however, the new group is created collapsed. The user will need to use the disclosure button next to it to expand it, revealing the entries created in the group.
|
|
11436
11436
|
*
|
|
11437
11437
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static)
|
|
11438
11438
|
*/
|
|
11439
11439
|
groupCollapsed(...data: any[]): void;
|
|
11440
11440
|
/**
|
|
11441
|
-
* The **`console.groupEnd()`** static method exits the current inline group in the console.
|
|
11441
|
+
* The **`console.groupEnd()`** static method exits the current inline group in the console. See Using groups in the console in the console documentation for details and examples.
|
|
11442
11442
|
*
|
|
11443
11443
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static)
|
|
11444
11444
|
*/
|
|
11445
11445
|
groupEnd(): void;
|
|
11446
11446
|
/**
|
|
11447
|
-
* The **`console.info()`** static method outputs a message to the console at the
|
|
11447
|
+
* The **`console.info()`** static method outputs a message to the console at the "info" log level. The message is only displayed to the user if the console is configured to display info output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as a small "i" icon next to it.
|
|
11448
11448
|
*
|
|
11449
11449
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static)
|
|
11450
11450
|
*/
|
|
@@ -11462,19 +11462,19 @@ interface Console {
|
|
|
11462
11462
|
*/
|
|
11463
11463
|
table(tabularData?: any, properties?: string[]): void;
|
|
11464
11464
|
/**
|
|
11465
|
-
* The **`console.time()`** static method starts a timer you can use to track how long an operation takes.
|
|
11465
|
+
* The **`console.time()`** static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started.
|
|
11466
11466
|
*
|
|
11467
11467
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static)
|
|
11468
11468
|
*/
|
|
11469
11469
|
time(label?: string): void;
|
|
11470
11470
|
/**
|
|
11471
|
-
* The **`console.timeEnd()`** static method stops a timer that was previously started by calling console
|
|
11471
|
+
* The **`console.timeEnd()`** static method stops a timer that was previously started by calling console.time().
|
|
11472
11472
|
*
|
|
11473
11473
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static)
|
|
11474
11474
|
*/
|
|
11475
11475
|
timeEnd(label?: string): void;
|
|
11476
11476
|
/**
|
|
11477
|
-
* The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console
|
|
11477
|
+
* The **`console.timeLog()`** static method logs the current value of a timer that was previously started by calling console.time().
|
|
11478
11478
|
*
|
|
11479
11479
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static)
|
|
11480
11480
|
*/
|
|
@@ -11487,7 +11487,7 @@ interface Console {
|
|
|
11487
11487
|
*/
|
|
11488
11488
|
trace(...data: any[]): void;
|
|
11489
11489
|
/**
|
|
11490
|
-
* The **`console.warn()`** static method outputs a warning message to the console at the
|
|
11490
|
+
* The **`console.warn()`** static method outputs a warning message to the console at the "warning" log level. The message is only displayed to the user if the console is configured to display warning output. In most cases, the log level is configured within the console UI. The message may receive special formatting, such as yellow colors and a warning icon.
|
|
11491
11491
|
*
|
|
11492
11492
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static)
|
|
11493
11493
|
*/
|
|
@@ -11565,7 +11565,7 @@ interface VoidFunction {
|
|
|
11565
11565
|
}
|
|
11566
11566
|
|
|
11567
11567
|
/**
|
|
11568
|
-
* The **`clients`** read-only property of the ServiceWorkerGlobalScope interface returns the
|
|
11568
|
+
* The **`clients`** read-only property of the ServiceWorkerGlobalScope interface returns the Clients object associated with the service worker.
|
|
11569
11569
|
*
|
|
11570
11570
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients)
|
|
11571
11571
|
*/
|
|
@@ -11615,19 +11615,19 @@ declare var serviceWorker: ServiceWorker;
|
|
|
11615
11615
|
*/
|
|
11616
11616
|
declare function skipWaiting(): Promise<void>;
|
|
11617
11617
|
/**
|
|
11618
|
-
* The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
|
|
11618
|
+
* The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
|
|
11619
11619
|
*
|
|
11620
11620
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
11621
11621
|
*/
|
|
11622
11622
|
declare function dispatchEvent(event: Event): boolean;
|
|
11623
11623
|
/**
|
|
11624
|
-
* The **`location`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.
|
|
11624
|
+
* The **`location`** read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker. It is a specific location object, mostly a subset of the Location for browsing scopes, but adapted to workers.
|
|
11625
11625
|
*
|
|
11626
11626
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
|
|
11627
11627
|
*/
|
|
11628
11628
|
declare var location: WorkerLocation;
|
|
11629
11629
|
/**
|
|
11630
|
-
* The **`navigator`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker.
|
|
11630
|
+
* The **`navigator`** read-only property of the WorkerGlobalScope interface returns the WorkerNavigator associated with the worker. It is a specific navigator object, mostly a subset of the Navigator for browsing scopes, but adapted to workers.
|
|
11631
11631
|
*
|
|
11632
11632
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
|
|
11633
11633
|
*/
|
|
@@ -11645,7 +11645,7 @@ declare var onrejectionhandled: ((this: ServiceWorkerGlobalScope, ev: PromiseRej
|
|
|
11645
11645
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/unhandledrejection_event) */
|
|
11646
11646
|
declare var onunhandledrejection: ((this: ServiceWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
11647
11647
|
/**
|
|
11648
|
-
* The **`self`** read-only property of the WorkerGlobalScope interface returns a reference to the
|
|
11648
|
+
* The **`self`** read-only property of the WorkerGlobalScope interface returns a reference to the WorkerGlobalScope itself. Most of the time it is a specific scope like DedicatedWorkerGlobalScope, SharedWorkerGlobalScope, or ServiceWorkerGlobalScope.
|
|
11649
11649
|
*
|
|
11650
11650
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
|
|
11651
11651
|
*/
|
|
@@ -11657,7 +11657,7 @@ declare var self: WorkerGlobalScope & typeof globalThis;
|
|
|
11657
11657
|
*/
|
|
11658
11658
|
declare function importScripts(...urls: (string | URL)[]): void;
|
|
11659
11659
|
/**
|
|
11660
|
-
* The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
|
|
11660
|
+
* The **`dispatchEvent()`** method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
|
|
11661
11661
|
*
|
|
11662
11662
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
|
|
11663
11663
|
*/
|
|
@@ -11863,7 +11863,7 @@ interface CSSUnparsedValue {
|
|
|
11863
11863
|
|
|
11864
11864
|
interface Cache {
|
|
11865
11865
|
/**
|
|
11866
|
-
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
|
11866
|
+
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache. The request objects created during retrieval become keys to the stored response operations.
|
|
11867
11867
|
*
|
|
11868
11868
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
11869
11869
|
*/
|
|
@@ -11945,7 +11945,7 @@ interface IDBDatabase {
|
|
|
11945
11945
|
|
|
11946
11946
|
interface IDBObjectStore {
|
|
11947
11947
|
/**
|
|
11948
|
-
* The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database.
|
|
11948
|
+
* The **`createIndex()`** method of the IDBObjectStore interface creates and returns a new IDBIndex object in the connected database. It creates a new field/column defining a new data point for each database record to contain.
|
|
11949
11949
|
*
|
|
11950
11950
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
11951
11951
|
*/
|
|
@@ -11992,7 +11992,7 @@ interface SubtleCrypto {
|
|
|
11992
11992
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
11993
11993
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
11994
11994
|
/**
|
|
11995
|
-
* The **`unwrapKey()`** method of the SubtleCrypto interface
|
|
11995
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface "unwraps" a key. This means that it takes as its input a key that has been exported and then encrypted (also called "wrapped"). It decrypts the key and then imports it, returning a CryptoKey object that can be used in the Web Crypto API.
|
|
11996
11996
|
*
|
|
11997
11997
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
11998
11998
|
*/
|
|
@@ -12024,25 +12024,25 @@ interface WEBGL_draw_buffers {
|
|
|
12024
12024
|
|
|
12025
12025
|
interface WEBGL_multi_draw {
|
|
12026
12026
|
/**
|
|
12027
|
-
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
12027
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArraysInstanced() method.
|
|
12028
12028
|
*
|
|
12029
12029
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
12030
12030
|
*/
|
|
12031
12031
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
12032
12032
|
/**
|
|
12033
|
-
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
12033
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawArrays() method.
|
|
12034
12034
|
*
|
|
12035
12035
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
12036
12036
|
*/
|
|
12037
12037
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | GLint[], firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
|
|
12038
12038
|
/**
|
|
12039
|
-
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
12039
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElementsInstanced() method.
|
|
12040
12040
|
*
|
|
12041
12041
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
12042
12042
|
*/
|
|
12043
12043
|
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
12044
12044
|
/**
|
|
12045
|
-
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
12045
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data. It is identical to multiple calls to the gl.drawElements() method.
|
|
12046
12046
|
*
|
|
12047
12047
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
12048
12048
|
*/
|