@typescript-deploys/pr-build 4.5.0-pr-46071-5 → 4.5.0-pr-46071-13
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/lib/cs/diagnosticMessages.generated.json +17 -4
- package/lib/de/diagnosticMessages.generated.json +19 -5
- package/lib/es/diagnosticMessages.generated.json +17 -4
- package/lib/fr/diagnosticMessages.generated.json +17 -4
- package/lib/it/diagnosticMessages.generated.json +17 -4
- package/lib/ja/diagnosticMessages.generated.json +17 -4
- package/lib/ko/diagnosticMessages.generated.json +17 -4
- package/lib/lib.dom.d.ts +669 -1896
- package/lib/lib.dom.iterable.d.ts +16 -48
- package/lib/lib.es5.d.ts +10 -10
- package/lib/lib.webworker.d.ts +183 -520
- package/lib/lib.webworker.iterable.d.ts +10 -30
- package/lib/pl/diagnosticMessages.generated.json +17 -4
- package/lib/pt-br/diagnosticMessages.generated.json +17 -4
- package/lib/ru/diagnosticMessages.generated.json +17 -4
- package/lib/tr/diagnosticMessages.generated.json +17 -4
- package/lib/tsc.js +522 -322
- package/lib/tsserver.js +1015 -514
- package/lib/tsserverlibrary.d.ts +11 -8
- package/lib/tsserverlibrary.js +1015 -514
- package/lib/typescript.d.ts +11 -8
- package/lib/typescript.js +1015 -514
- package/lib/typescriptServices.d.ts +11 -8
- package/lib/typescriptServices.js +1015 -514
- package/lib/typingsInstaller.js +588 -331
- package/lib/zh-cn/diagnosticMessages.generated.json +17 -4
- package/lib/zh-tw/diagnosticMessages.generated.json +17 -4
- package/package.json +1 -1
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -405,10 +405,6 @@ interface PermissionDescriptor {
|
|
|
405
405
|
name: PermissionName;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
interface PostMessageOptions {
|
|
409
|
-
transfer?: any[];
|
|
410
|
-
}
|
|
411
|
-
|
|
412
408
|
interface ProgressEventInit extends EventInit {
|
|
413
409
|
lengthComputable?: boolean;
|
|
414
410
|
loaded?: number;
|
|
@@ -476,57 +472,31 @@ interface RegistrationOptions {
|
|
|
476
472
|
}
|
|
477
473
|
|
|
478
474
|
interface RequestInit {
|
|
479
|
-
/**
|
|
480
|
-
* A BodyInit object or null to set request's body.
|
|
481
|
-
*/
|
|
475
|
+
/** A BodyInit object or null to set request's body. */
|
|
482
476
|
body?: BodyInit | null;
|
|
483
|
-
/**
|
|
484
|
-
* A string indicating how the request will interact with the browser's cache to set request's cache.
|
|
485
|
-
*/
|
|
477
|
+
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
|
|
486
478
|
cache?: RequestCache;
|
|
487
|
-
/**
|
|
488
|
-
* A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
|
|
489
|
-
*/
|
|
479
|
+
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
|
|
490
480
|
credentials?: RequestCredentials;
|
|
491
|
-
/**
|
|
492
|
-
* A Headers object, an object literal, or an array of two-item arrays to set request's headers.
|
|
493
|
-
*/
|
|
481
|
+
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
|
|
494
482
|
headers?: HeadersInit;
|
|
495
|
-
/**
|
|
496
|
-
* A cryptographic hash of the resource to be fetched by request. Sets request's integrity.
|
|
497
|
-
*/
|
|
483
|
+
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
|
|
498
484
|
integrity?: string;
|
|
499
|
-
/**
|
|
500
|
-
* A boolean to set request's keepalive.
|
|
501
|
-
*/
|
|
485
|
+
/** A boolean to set request's keepalive. */
|
|
502
486
|
keepalive?: boolean;
|
|
503
|
-
/**
|
|
504
|
-
* A string to set request's method.
|
|
505
|
-
*/
|
|
487
|
+
/** A string to set request's method. */
|
|
506
488
|
method?: string;
|
|
507
|
-
/**
|
|
508
|
-
* A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
|
|
509
|
-
*/
|
|
489
|
+
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
|
|
510
490
|
mode?: RequestMode;
|
|
511
|
-
/**
|
|
512
|
-
* A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
|
|
513
|
-
*/
|
|
491
|
+
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
|
|
514
492
|
redirect?: RequestRedirect;
|
|
515
|
-
/**
|
|
516
|
-
* A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
|
|
517
|
-
*/
|
|
493
|
+
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
|
|
518
494
|
referrer?: string;
|
|
519
|
-
/**
|
|
520
|
-
* A referrer policy to set request's referrerPolicy.
|
|
521
|
-
*/
|
|
495
|
+
/** A referrer policy to set request's referrerPolicy. */
|
|
522
496
|
referrerPolicy?: ReferrerPolicy;
|
|
523
|
-
/**
|
|
524
|
-
* An AbortSignal to set request's signal.
|
|
525
|
-
*/
|
|
497
|
+
/** An AbortSignal to set request's signal. */
|
|
526
498
|
signal?: AbortSignal | null;
|
|
527
|
-
/**
|
|
528
|
-
* Can only be null. Used to disassociate request from any Window.
|
|
529
|
-
*/
|
|
499
|
+
/** Can only be null. Used to disassociate request from any Window. */
|
|
530
500
|
window?: any;
|
|
531
501
|
}
|
|
532
502
|
|
|
@@ -607,6 +577,10 @@ interface StreamPipeOptions {
|
|
|
607
577
|
signal?: AbortSignal;
|
|
608
578
|
}
|
|
609
579
|
|
|
580
|
+
interface StructuredSerializeOptions {
|
|
581
|
+
transfer?: any[];
|
|
582
|
+
}
|
|
583
|
+
|
|
610
584
|
interface TextDecodeOptions {
|
|
611
585
|
stream?: boolean;
|
|
612
586
|
}
|
|
@@ -688,13 +662,9 @@ interface ANGLE_instanced_arrays {
|
|
|
688
662
|
|
|
689
663
|
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
|
|
690
664
|
interface AbortController {
|
|
691
|
-
/**
|
|
692
|
-
* Returns the AbortSignal object associated with this object.
|
|
693
|
-
*/
|
|
665
|
+
/** Returns the AbortSignal object associated with this object. */
|
|
694
666
|
readonly signal: AbortSignal;
|
|
695
|
-
/**
|
|
696
|
-
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
|
|
697
|
-
*/
|
|
667
|
+
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
|
698
668
|
abort(): void;
|
|
699
669
|
}
|
|
700
670
|
|
|
@@ -709,9 +679,7 @@ interface AbortSignalEventMap {
|
|
|
709
679
|
|
|
710
680
|
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
|
|
711
681
|
interface AbortSignal extends EventTarget {
|
|
712
|
-
/**
|
|
713
|
-
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
|
|
714
|
-
*/
|
|
682
|
+
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
715
683
|
readonly aborted: boolean;
|
|
716
684
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
717
685
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -723,6 +691,7 @@ interface AbortSignal extends EventTarget {
|
|
|
723
691
|
declare var AbortSignal: {
|
|
724
692
|
prototype: AbortSignal;
|
|
725
693
|
new(): AbortSignal;
|
|
694
|
+
// abort(): AbortSignal;
|
|
726
695
|
};
|
|
727
696
|
|
|
728
697
|
interface AbstractWorkerEventMap {
|
|
@@ -773,19 +742,13 @@ interface BroadcastChannelEventMap {
|
|
|
773
742
|
}
|
|
774
743
|
|
|
775
744
|
interface BroadcastChannel extends EventTarget {
|
|
776
|
-
/**
|
|
777
|
-
* Returns the channel name (as passed to the constructor).
|
|
778
|
-
*/
|
|
745
|
+
/** Returns the channel name (as passed to the constructor). */
|
|
779
746
|
readonly name: string;
|
|
780
747
|
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
781
748
|
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
|
|
782
|
-
/**
|
|
783
|
-
* Closes the BroadcastChannel object, opening it up to garbage collection.
|
|
784
|
-
*/
|
|
749
|
+
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
|
|
785
750
|
close(): void;
|
|
786
|
-
/**
|
|
787
|
-
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
|
|
788
|
-
*/
|
|
751
|
+
/** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
|
|
789
752
|
postMessage(message: any): void;
|
|
790
753
|
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
791
754
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -868,9 +831,7 @@ interface CanvasPath {
|
|
|
868
831
|
|
|
869
832
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
870
833
|
interface CanvasPattern {
|
|
871
|
-
/**
|
|
872
|
-
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
|
|
873
|
-
*/
|
|
834
|
+
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
|
|
874
835
|
setTransform(transform?: DOMMatrix2DInit): void;
|
|
875
836
|
}
|
|
876
837
|
|
|
@@ -886,7 +847,7 @@ interface Client {
|
|
|
886
847
|
readonly type: ClientTypes;
|
|
887
848
|
readonly url: string;
|
|
888
849
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
889
|
-
postMessage(message: any, options?:
|
|
850
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
890
851
|
}
|
|
891
852
|
|
|
892
853
|
declare var Client: {
|
|
@@ -909,17 +870,11 @@ declare var Clients: {
|
|
|
909
870
|
|
|
910
871
|
/** 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. */
|
|
911
872
|
interface CloseEvent extends Event {
|
|
912
|
-
/**
|
|
913
|
-
* Returns the WebSocket connection close code provided by the server.
|
|
914
|
-
*/
|
|
873
|
+
/** Returns the WebSocket connection close code provided by the server. */
|
|
915
874
|
readonly code: number;
|
|
916
|
-
/**
|
|
917
|
-
* Returns the WebSocket connection close reason provided by the server.
|
|
918
|
-
*/
|
|
875
|
+
/** Returns the WebSocket connection close reason provided by the server. */
|
|
919
876
|
readonly reason: string;
|
|
920
|
-
/**
|
|
921
|
-
* Returns true if the connection closed cleanly; false otherwise.
|
|
922
|
-
*/
|
|
877
|
+
/** Returns true if the connection closed cleanly; false otherwise. */
|
|
923
878
|
readonly wasClean: boolean;
|
|
924
879
|
}
|
|
925
880
|
|
|
@@ -964,9 +919,7 @@ declare var CryptoKey: {
|
|
|
964
919
|
};
|
|
965
920
|
|
|
966
921
|
interface CustomEvent<T = any> extends Event {
|
|
967
|
-
/**
|
|
968
|
-
* Returns any custom data event was created with. Typically used for synthetic events.
|
|
969
|
-
*/
|
|
922
|
+
/** Returns any custom data event was created with. Typically used for synthetic events. */
|
|
970
923
|
readonly detail: T;
|
|
971
924
|
/** @deprecated */
|
|
972
925
|
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
@@ -978,7 +931,7 @@ declare var CustomEvent: {
|
|
|
978
931
|
};
|
|
979
932
|
|
|
980
933
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
981
|
-
interface DOMException {
|
|
934
|
+
interface DOMException extends Error {
|
|
982
935
|
readonly code: number;
|
|
983
936
|
readonly message: string;
|
|
984
937
|
readonly name: string;
|
|
@@ -1213,17 +1166,11 @@ declare var DOMRectReadOnly: {
|
|
|
1213
1166
|
|
|
1214
1167
|
/** A type returned by some APIs which contains a list of DOMString (strings). */
|
|
1215
1168
|
interface DOMStringList {
|
|
1216
|
-
/**
|
|
1217
|
-
* Returns the number of strings in strings.
|
|
1218
|
-
*/
|
|
1169
|
+
/** Returns the number of strings in strings. */
|
|
1219
1170
|
readonly length: number;
|
|
1220
|
-
/**
|
|
1221
|
-
* Returns true if strings contains string, and false otherwise.
|
|
1222
|
-
*/
|
|
1171
|
+
/** Returns true if strings contains string, and false otherwise. */
|
|
1223
1172
|
contains(string: string): boolean;
|
|
1224
|
-
/**
|
|
1225
|
-
* Returns the string with index index from strings.
|
|
1226
|
-
*/
|
|
1173
|
+
/** Returns the string with index index from strings. */
|
|
1227
1174
|
item(index: number): string | null;
|
|
1228
1175
|
[index: number]: string;
|
|
1229
1176
|
}
|
|
@@ -1240,21 +1187,15 @@ interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
1240
1187
|
|
|
1241
1188
|
/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
|
|
1242
1189
|
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
|
|
1243
|
-
/**
|
|
1244
|
-
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
|
1245
|
-
*/
|
|
1190
|
+
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
|
|
1246
1191
|
readonly name: string;
|
|
1247
1192
|
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
1248
1193
|
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
1249
|
-
/**
|
|
1250
|
-
* Aborts dedicatedWorkerGlobal.
|
|
1251
|
-
*/
|
|
1194
|
+
/** Aborts dedicatedWorkerGlobal. */
|
|
1252
1195
|
close(): void;
|
|
1253
|
-
/**
|
|
1254
|
-
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
1255
|
-
*/
|
|
1196
|
+
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
|
|
1256
1197
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
1257
|
-
postMessage(message: any, options?:
|
|
1198
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
1258
1199
|
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1259
1200
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1260
1201
|
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -1327,68 +1268,40 @@ declare var ErrorEvent: {
|
|
|
1327
1268
|
|
|
1328
1269
|
/** An event which takes place in the DOM. */
|
|
1329
1270
|
interface Event {
|
|
1330
|
-
/**
|
|
1331
|
-
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
|
|
1332
|
-
*/
|
|
1271
|
+
/** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
|
|
1333
1272
|
readonly bubbles: boolean;
|
|
1334
1273
|
cancelBubble: boolean;
|
|
1335
|
-
/**
|
|
1336
|
-
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
|
|
1337
|
-
*/
|
|
1274
|
+
/** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
|
|
1338
1275
|
readonly cancelable: boolean;
|
|
1339
|
-
/**
|
|
1340
|
-
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
|
|
1341
|
-
*/
|
|
1276
|
+
/** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
|
|
1342
1277
|
readonly composed: boolean;
|
|
1343
|
-
/**
|
|
1344
|
-
* Returns the object whose event listener's callback is currently being invoked.
|
|
1345
|
-
*/
|
|
1278
|
+
/** Returns the object whose event listener's callback is currently being invoked. */
|
|
1346
1279
|
readonly currentTarget: EventTarget | null;
|
|
1347
|
-
/**
|
|
1348
|
-
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
|
|
1349
|
-
*/
|
|
1280
|
+
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
|
|
1350
1281
|
readonly defaultPrevented: boolean;
|
|
1351
|
-
/**
|
|
1352
|
-
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
|
|
1353
|
-
*/
|
|
1282
|
+
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
|
|
1354
1283
|
readonly eventPhase: number;
|
|
1355
|
-
/**
|
|
1356
|
-
* Returns true if event was dispatched by the user agent, and false otherwise.
|
|
1357
|
-
*/
|
|
1284
|
+
/** Returns true if event was dispatched by the user agent, and false otherwise. */
|
|
1358
1285
|
readonly isTrusted: boolean;
|
|
1359
1286
|
/** @deprecated */
|
|
1360
1287
|
returnValue: boolean;
|
|
1361
1288
|
/** @deprecated */
|
|
1362
1289
|
readonly srcElement: EventTarget | null;
|
|
1363
|
-
/**
|
|
1364
|
-
* Returns the object to which event is dispatched (its target).
|
|
1365
|
-
*/
|
|
1290
|
+
/** Returns the object to which event is dispatched (its target). */
|
|
1366
1291
|
readonly target: EventTarget | null;
|
|
1367
|
-
/**
|
|
1368
|
-
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
|
|
1369
|
-
*/
|
|
1292
|
+
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
|
|
1370
1293
|
readonly timeStamp: DOMHighResTimeStamp;
|
|
1371
|
-
/**
|
|
1372
|
-
* Returns the type of event, e.g. "click", "hashchange", or "submit".
|
|
1373
|
-
*/
|
|
1294
|
+
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
|
|
1374
1295
|
readonly type: string;
|
|
1375
|
-
/**
|
|
1376
|
-
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
|
|
1377
|
-
*/
|
|
1296
|
+
/** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
|
|
1378
1297
|
composedPath(): EventTarget[];
|
|
1379
1298
|
/** @deprecated */
|
|
1380
1299
|
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
|
|
1381
|
-
/**
|
|
1382
|
-
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
|
|
1383
|
-
*/
|
|
1300
|
+
/** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
|
|
1384
1301
|
preventDefault(): void;
|
|
1385
|
-
/**
|
|
1386
|
-
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
|
|
1387
|
-
*/
|
|
1302
|
+
/** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
|
|
1388
1303
|
stopImmediatePropagation(): void;
|
|
1389
|
-
/**
|
|
1390
|
-
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
|
|
1391
|
-
*/
|
|
1304
|
+
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
|
|
1392
1305
|
stopPropagation(): void;
|
|
1393
1306
|
readonly AT_TARGET: number;
|
|
1394
1307
|
readonly BUBBLING_PHASE: number;
|
|
@@ -1423,21 +1336,13 @@ interface EventSource extends EventTarget {
|
|
|
1423
1336
|
onerror: ((this: EventSource, ev: Event) => any) | null;
|
|
1424
1337
|
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
|
|
1425
1338
|
onopen: ((this: EventSource, ev: Event) => any) | null;
|
|
1426
|
-
/**
|
|
1427
|
-
* Returns the state of this EventSource object's connection. It can have the values described below.
|
|
1428
|
-
*/
|
|
1339
|
+
/** Returns the state of this EventSource object's connection. It can have the values described below. */
|
|
1429
1340
|
readonly readyState: number;
|
|
1430
|
-
/**
|
|
1431
|
-
* Returns the URL providing the event stream.
|
|
1432
|
-
*/
|
|
1341
|
+
/** Returns the URL providing the event stream. */
|
|
1433
1342
|
readonly url: string;
|
|
1434
|
-
/**
|
|
1435
|
-
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
|
|
1436
|
-
*/
|
|
1343
|
+
/** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
|
|
1437
1344
|
readonly withCredentials: boolean;
|
|
1438
|
-
/**
|
|
1439
|
-
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
|
|
1440
|
-
*/
|
|
1345
|
+
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
|
|
1441
1346
|
close(): void;
|
|
1442
1347
|
readonly CLOSED: number;
|
|
1443
1348
|
readonly CONNECTING: number;
|
|
@@ -1474,13 +1379,9 @@ interface EventTarget {
|
|
|
1474
1379
|
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
|
|
1475
1380
|
*/
|
|
1476
1381
|
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
1477
|
-
/**
|
|
1478
|
-
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
1479
|
-
*/
|
|
1382
|
+
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
1480
1383
|
dispatchEvent(event: Event): boolean;
|
|
1481
|
-
/**
|
|
1482
|
-
* Removes the event listener in target's event listener list with the same type, callback, and options.
|
|
1483
|
-
*/
|
|
1384
|
+
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
|
|
1484
1385
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
1485
1386
|
}
|
|
1486
1387
|
|
|
@@ -1707,34 +1608,20 @@ declare var Headers: {
|
|
|
1707
1608
|
|
|
1708
1609
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
|
|
1709
1610
|
interface IDBCursor {
|
|
1710
|
-
/**
|
|
1711
|
-
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
|
|
1712
|
-
*/
|
|
1611
|
+
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
|
|
1713
1612
|
readonly direction: IDBCursorDirection;
|
|
1714
|
-
/**
|
|
1715
|
-
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
1716
|
-
*/
|
|
1613
|
+
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
|
|
1717
1614
|
readonly key: IDBValidKey;
|
|
1718
|
-
/**
|
|
1719
|
-
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
1720
|
-
*/
|
|
1615
|
+
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
|
|
1721
1616
|
readonly primaryKey: IDBValidKey;
|
|
1722
1617
|
readonly request: IDBRequest;
|
|
1723
|
-
/**
|
|
1724
|
-
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
|
|
1725
|
-
*/
|
|
1618
|
+
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
|
|
1726
1619
|
readonly source: IDBObjectStore | IDBIndex;
|
|
1727
|
-
/**
|
|
1728
|
-
* Advances the cursor through the next count records in range.
|
|
1729
|
-
*/
|
|
1620
|
+
/** Advances the cursor through the next count records in range. */
|
|
1730
1621
|
advance(count: number): void;
|
|
1731
|
-
/**
|
|
1732
|
-
* Advances the cursor to the next record in range.
|
|
1733
|
-
*/
|
|
1622
|
+
/** Advances the cursor to the next record in range. */
|
|
1734
1623
|
continue(key?: IDBValidKey): void;
|
|
1735
|
-
/**
|
|
1736
|
-
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
|
|
1737
|
-
*/
|
|
1624
|
+
/** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
|
|
1738
1625
|
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
|
|
1739
1626
|
/**
|
|
1740
1627
|
* Delete the record pointed at by the cursor with a new value.
|
|
@@ -1759,9 +1646,7 @@ declare var IDBCursor: {
|
|
|
1759
1646
|
|
|
1760
1647
|
/** This IndexedDB API interface 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. */
|
|
1761
1648
|
interface IDBCursorWithValue extends IDBCursor {
|
|
1762
|
-
/**
|
|
1763
|
-
* Returns the cursor's current value.
|
|
1764
|
-
*/
|
|
1649
|
+
/** Returns the cursor's current value. */
|
|
1765
1650
|
readonly value: any;
|
|
1766
1651
|
}
|
|
1767
1652
|
|
|
@@ -1779,25 +1664,17 @@ interface IDBDatabaseEventMap {
|
|
|
1779
1664
|
|
|
1780
1665
|
/** This IndexedDB API interface 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. */
|
|
1781
1666
|
interface IDBDatabase extends EventTarget {
|
|
1782
|
-
/**
|
|
1783
|
-
* Returns the name of the database.
|
|
1784
|
-
*/
|
|
1667
|
+
/** Returns the name of the database. */
|
|
1785
1668
|
readonly name: string;
|
|
1786
|
-
/**
|
|
1787
|
-
* Returns a list of the names of object stores in the database.
|
|
1788
|
-
*/
|
|
1669
|
+
/** Returns a list of the names of object stores in the database. */
|
|
1789
1670
|
readonly objectStoreNames: DOMStringList;
|
|
1790
1671
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1791
1672
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1792
1673
|
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1793
1674
|
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
1794
|
-
/**
|
|
1795
|
-
* Returns the version of the database.
|
|
1796
|
-
*/
|
|
1675
|
+
/** Returns the version of the database. */
|
|
1797
1676
|
readonly version: number;
|
|
1798
|
-
/**
|
|
1799
|
-
* Closes the connection once all running transactions have finished.
|
|
1800
|
-
*/
|
|
1677
|
+
/** Closes the connection once all running transactions have finished. */
|
|
1801
1678
|
close(): void;
|
|
1802
1679
|
/**
|
|
1803
1680
|
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
|
|
@@ -1811,9 +1688,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1811
1688
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
1812
1689
|
*/
|
|
1813
1690
|
deleteObjectStore(name: string): void;
|
|
1814
|
-
/**
|
|
1815
|
-
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
|
|
1816
|
-
*/
|
|
1691
|
+
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
1817
1692
|
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1818
1693
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1819
1694
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1835,13 +1710,9 @@ interface IDBFactory {
|
|
|
1835
1710
|
*/
|
|
1836
1711
|
cmp(first: any, second: any): number;
|
|
1837
1712
|
databases(): Promise<IDBDatabaseInfo[]>;
|
|
1838
|
-
/**
|
|
1839
|
-
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
|
|
1840
|
-
*/
|
|
1713
|
+
/** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
|
|
1841
1714
|
deleteDatabase(name: string): IDBOpenDBRequest;
|
|
1842
|
-
/**
|
|
1843
|
-
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
|
|
1844
|
-
*/
|
|
1715
|
+
/** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
|
|
1845
1716
|
open(name: string, version?: number): IDBOpenDBRequest;
|
|
1846
1717
|
}
|
|
1847
1718
|
|
|
@@ -1854,13 +1725,9 @@ declare var IDBFactory: {
|
|
|
1854
1725
|
interface IDBIndex {
|
|
1855
1726
|
readonly keyPath: string | string[];
|
|
1856
1727
|
readonly multiEntry: boolean;
|
|
1857
|
-
/**
|
|
1858
|
-
* Returns the name of the index.
|
|
1859
|
-
*/
|
|
1728
|
+
/** Returns the name of the index. */
|
|
1860
1729
|
name: string;
|
|
1861
|
-
/**
|
|
1862
|
-
* Returns the IDBObjectStore the index belongs to.
|
|
1863
|
-
*/
|
|
1730
|
+
/** Returns the IDBObjectStore the index belongs to. */
|
|
1864
1731
|
readonly objectStore: IDBObjectStore;
|
|
1865
1732
|
readonly unique: boolean;
|
|
1866
1733
|
/**
|
|
@@ -1914,70 +1781,42 @@ declare var IDBIndex: {
|
|
|
1914
1781
|
|
|
1915
1782
|
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
|
|
1916
1783
|
interface IDBKeyRange {
|
|
1917
|
-
/**
|
|
1918
|
-
* Returns lower bound, or undefined if none.
|
|
1919
|
-
*/
|
|
1784
|
+
/** Returns lower bound, or undefined if none. */
|
|
1920
1785
|
readonly lower: any;
|
|
1921
|
-
/**
|
|
1922
|
-
* Returns true if the lower open flag is set, and false otherwise.
|
|
1923
|
-
*/
|
|
1786
|
+
/** Returns true if the lower open flag is set, and false otherwise. */
|
|
1924
1787
|
readonly lowerOpen: boolean;
|
|
1925
|
-
/**
|
|
1926
|
-
* Returns upper bound, or undefined if none.
|
|
1927
|
-
*/
|
|
1788
|
+
/** Returns upper bound, or undefined if none. */
|
|
1928
1789
|
readonly upper: any;
|
|
1929
|
-
/**
|
|
1930
|
-
* Returns true if the upper open flag is set, and false otherwise.
|
|
1931
|
-
*/
|
|
1790
|
+
/** Returns true if the upper open flag is set, and false otherwise. */
|
|
1932
1791
|
readonly upperOpen: boolean;
|
|
1933
|
-
/**
|
|
1934
|
-
* Returns true if key is included in the range, and false otherwise.
|
|
1935
|
-
*/
|
|
1792
|
+
/** Returns true if key is included in the range, and false otherwise. */
|
|
1936
1793
|
includes(key: any): boolean;
|
|
1937
1794
|
}
|
|
1938
1795
|
|
|
1939
1796
|
declare var IDBKeyRange: {
|
|
1940
1797
|
prototype: IDBKeyRange;
|
|
1941
1798
|
new(): IDBKeyRange;
|
|
1942
|
-
/**
|
|
1943
|
-
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
|
|
1944
|
-
*/
|
|
1799
|
+
/** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
|
|
1945
1800
|
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
|
|
1946
|
-
/**
|
|
1947
|
-
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
|
|
1948
|
-
*/
|
|
1801
|
+
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
|
|
1949
1802
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
|
1950
|
-
/**
|
|
1951
|
-
* Returns a new IDBKeyRange spanning only key.
|
|
1952
|
-
*/
|
|
1803
|
+
/** Returns a new IDBKeyRange spanning only key. */
|
|
1953
1804
|
only(value: any): IDBKeyRange;
|
|
1954
|
-
/**
|
|
1955
|
-
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
|
|
1956
|
-
*/
|
|
1805
|
+
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
|
|
1957
1806
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
|
1958
1807
|
};
|
|
1959
1808
|
|
|
1960
1809
|
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our To-do Notifications app (view example live.) */
|
|
1961
1810
|
interface IDBObjectStore {
|
|
1962
|
-
/**
|
|
1963
|
-
* Returns true if the store has a key generator, and false otherwise.
|
|
1964
|
-
*/
|
|
1811
|
+
/** Returns true if the store has a key generator, and false otherwise. */
|
|
1965
1812
|
readonly autoIncrement: boolean;
|
|
1966
|
-
/**
|
|
1967
|
-
* Returns a list of the names of indexes in the store.
|
|
1968
|
-
*/
|
|
1813
|
+
/** Returns a list of the names of indexes in the store. */
|
|
1969
1814
|
readonly indexNames: DOMStringList;
|
|
1970
|
-
/**
|
|
1971
|
-
* Returns the key path of the store, or null if none.
|
|
1972
|
-
*/
|
|
1815
|
+
/** Returns the key path of the store, or null if none. */
|
|
1973
1816
|
readonly keyPath: string | string[];
|
|
1974
|
-
/**
|
|
1975
|
-
* Returns the name of the store.
|
|
1976
|
-
*/
|
|
1817
|
+
/** Returns the name of the store. */
|
|
1977
1818
|
name: string;
|
|
1978
|
-
/**
|
|
1979
|
-
* Returns the associated transaction.
|
|
1980
|
-
*/
|
|
1819
|
+
/** Returns the associated transaction. */
|
|
1981
1820
|
readonly transaction: IDBTransaction;
|
|
1982
1821
|
/**
|
|
1983
1822
|
* Adds or updates a record in store with the given value and key.
|
|
@@ -2100,27 +1939,17 @@ interface IDBRequestEventMap {
|
|
|
2100
1939
|
|
|
2101
1940
|
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
|
|
2102
1941
|
interface IDBRequest<T = any> extends EventTarget {
|
|
2103
|
-
/**
|
|
2104
|
-
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
2105
|
-
*/
|
|
1942
|
+
/** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
|
|
2106
1943
|
readonly error: DOMException | null;
|
|
2107
1944
|
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
2108
1945
|
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
2109
|
-
/**
|
|
2110
|
-
* Returns "pending" until a request is complete, then returns "done".
|
|
2111
|
-
*/
|
|
1946
|
+
/** Returns "pending" until a request is complete, then returns "done". */
|
|
2112
1947
|
readonly readyState: IDBRequestReadyState;
|
|
2113
|
-
/**
|
|
2114
|
-
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
|
|
2115
|
-
*/
|
|
1948
|
+
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
|
|
2116
1949
|
readonly result: T;
|
|
2117
|
-
/**
|
|
2118
|
-
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
|
|
2119
|
-
*/
|
|
1950
|
+
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
|
|
2120
1951
|
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
|
|
2121
|
-
/**
|
|
2122
|
-
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
|
|
2123
|
-
*/
|
|
1952
|
+
/** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
|
|
2124
1953
|
readonly transaction: IDBTransaction | null;
|
|
2125
1954
|
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2126
1955
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2140,33 +1969,21 @@ interface IDBTransactionEventMap {
|
|
|
2140
1969
|
}
|
|
2141
1970
|
|
|
2142
1971
|
interface IDBTransaction extends EventTarget {
|
|
2143
|
-
/**
|
|
2144
|
-
* Returns the transaction's connection.
|
|
2145
|
-
*/
|
|
1972
|
+
/** Returns the transaction's connection. */
|
|
2146
1973
|
readonly db: IDBDatabase;
|
|
2147
|
-
/**
|
|
2148
|
-
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
|
|
2149
|
-
*/
|
|
1974
|
+
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
2150
1975
|
readonly error: DOMException | null;
|
|
2151
|
-
/**
|
|
2152
|
-
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
|
|
2153
|
-
*/
|
|
1976
|
+
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
2154
1977
|
readonly mode: IDBTransactionMode;
|
|
2155
|
-
/**
|
|
2156
|
-
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
|
|
2157
|
-
*/
|
|
1978
|
+
/** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
|
|
2158
1979
|
readonly objectStoreNames: DOMStringList;
|
|
2159
1980
|
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2160
1981
|
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2161
1982
|
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2162
|
-
/**
|
|
2163
|
-
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
|
|
2164
|
-
*/
|
|
1983
|
+
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
|
|
2165
1984
|
abort(): void;
|
|
2166
1985
|
commit(): void;
|
|
2167
|
-
/**
|
|
2168
|
-
* Returns an IDBObjectStore in the transaction's scope.
|
|
2169
|
-
*/
|
|
1986
|
+
/** Returns an IDBObjectStore in the transaction's scope. */
|
|
2170
1987
|
objectStore(name: string): IDBObjectStore;
|
|
2171
1988
|
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2172
1989
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2191,17 +2008,11 @@ declare var IDBVersionChangeEvent: {
|
|
|
2191
2008
|
};
|
|
2192
2009
|
|
|
2193
2010
|
interface ImageBitmap {
|
|
2194
|
-
/**
|
|
2195
|
-
* Returns the intrinsic height of the image, in CSS pixels.
|
|
2196
|
-
*/
|
|
2011
|
+
/** Returns the intrinsic height of the image, in CSS pixels. */
|
|
2197
2012
|
readonly height: number;
|
|
2198
|
-
/**
|
|
2199
|
-
* Returns the intrinsic width of the image, in CSS pixels.
|
|
2200
|
-
*/
|
|
2013
|
+
/** Returns the intrinsic width of the image, in CSS pixels. */
|
|
2201
2014
|
readonly width: number;
|
|
2202
|
-
/**
|
|
2203
|
-
* Releases imageBitmap's underlying bitmap data.
|
|
2204
|
-
*/
|
|
2015
|
+
/** Releases imageBitmap's underlying bitmap data. */
|
|
2205
2016
|
close(): void;
|
|
2206
2017
|
}
|
|
2207
2018
|
|
|
@@ -2211,9 +2022,7 @@ declare var ImageBitmap: {
|
|
|
2211
2022
|
};
|
|
2212
2023
|
|
|
2213
2024
|
interface ImageBitmapRenderingContext {
|
|
2214
|
-
/**
|
|
2215
|
-
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
|
|
2216
|
-
*/
|
|
2025
|
+
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
|
|
2217
2026
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
2218
2027
|
}
|
|
2219
2028
|
|
|
@@ -2224,17 +2033,11 @@ declare var ImageBitmapRenderingContext: {
|
|
|
2224
2033
|
|
|
2225
2034
|
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
|
|
2226
2035
|
interface ImageData {
|
|
2227
|
-
/**
|
|
2228
|
-
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
|
|
2229
|
-
*/
|
|
2036
|
+
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
2230
2037
|
readonly data: Uint8ClampedArray;
|
|
2231
|
-
/**
|
|
2232
|
-
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
2233
|
-
*/
|
|
2038
|
+
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
2234
2039
|
readonly height: number;
|
|
2235
|
-
/**
|
|
2236
|
-
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
2237
|
-
*/
|
|
2040
|
+
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
2238
2041
|
readonly width: number;
|
|
2239
2042
|
}
|
|
2240
2043
|
|
|
@@ -2260,13 +2063,9 @@ declare var MediaCapabilities: {
|
|
|
2260
2063
|
|
|
2261
2064
|
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
|
|
2262
2065
|
interface MessageChannel {
|
|
2263
|
-
/**
|
|
2264
|
-
* Returns the first MessagePort object.
|
|
2265
|
-
*/
|
|
2066
|
+
/** Returns the first MessagePort object. */
|
|
2266
2067
|
readonly port1: MessagePort;
|
|
2267
|
-
/**
|
|
2268
|
-
* Returns the second MessagePort object.
|
|
2269
|
-
*/
|
|
2068
|
+
/** Returns the second MessagePort object. */
|
|
2270
2069
|
readonly port2: MessagePort;
|
|
2271
2070
|
}
|
|
2272
2071
|
|
|
@@ -2277,25 +2076,15 @@ declare var MessageChannel: {
|
|
|
2277
2076
|
|
|
2278
2077
|
/** A message received by a target object. */
|
|
2279
2078
|
interface MessageEvent<T = any> extends Event {
|
|
2280
|
-
/**
|
|
2281
|
-
* Returns the data of the message.
|
|
2282
|
-
*/
|
|
2079
|
+
/** Returns the data of the message. */
|
|
2283
2080
|
readonly data: T;
|
|
2284
|
-
/**
|
|
2285
|
-
* Returns the last event ID string, for server-sent events.
|
|
2286
|
-
*/
|
|
2081
|
+
/** Returns the last event ID string, for server-sent events. */
|
|
2287
2082
|
readonly lastEventId: string;
|
|
2288
|
-
/**
|
|
2289
|
-
* Returns the origin of the message, for server-sent events and cross-document messaging.
|
|
2290
|
-
*/
|
|
2083
|
+
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
|
|
2291
2084
|
readonly origin: string;
|
|
2292
|
-
/**
|
|
2293
|
-
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
|
|
2294
|
-
*/
|
|
2085
|
+
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
|
|
2295
2086
|
readonly ports: ReadonlyArray<MessagePort>;
|
|
2296
|
-
/**
|
|
2297
|
-
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
|
|
2298
|
-
*/
|
|
2087
|
+
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
|
|
2299
2088
|
readonly source: MessageEventSource | null;
|
|
2300
2089
|
/** @deprecated */
|
|
2301
2090
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
|
|
@@ -2315,9 +2104,7 @@ interface MessagePortEventMap {
|
|
|
2315
2104
|
interface MessagePort extends EventTarget {
|
|
2316
2105
|
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
2317
2106
|
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
2318
|
-
/**
|
|
2319
|
-
* Disconnects the port, so that it is no longer active.
|
|
2320
|
-
*/
|
|
2107
|
+
/** Disconnects the port, so that it is no longer active. */
|
|
2321
2108
|
close(): void;
|
|
2322
2109
|
/**
|
|
2323
2110
|
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
|
|
@@ -2325,10 +2112,8 @@ interface MessagePort extends EventTarget {
|
|
|
2325
2112
|
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
|
|
2326
2113
|
*/
|
|
2327
2114
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
2328
|
-
postMessage(message: any, options?:
|
|
2329
|
-
/**
|
|
2330
|
-
* Begins dispatching messages received on the port.
|
|
2331
|
-
*/
|
|
2115
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
2116
|
+
/** Begins dispatching messages received on the port. */
|
|
2332
2117
|
start(): void;
|
|
2333
2118
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2334
2119
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2480,9 +2265,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
2480
2265
|
|
|
2481
2266
|
/** This Canvas 2D API interface 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. */
|
|
2482
2267
|
interface Path2D extends CanvasPath {
|
|
2483
|
-
/**
|
|
2484
|
-
* Adds to the path the path given by the argument.
|
|
2485
|
-
*/
|
|
2268
|
+
/** Adds to the path the path given by the argument. */
|
|
2486
2269
|
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
|
|
2487
2270
|
}
|
|
2488
2271
|
|
|
@@ -2772,57 +2555,31 @@ interface ReadableStreamGenericReader {
|
|
|
2772
2555
|
|
|
2773
2556
|
/** This Fetch API interface represents a resource request. */
|
|
2774
2557
|
interface Request extends Body {
|
|
2775
|
-
/**
|
|
2776
|
-
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
|
|
2777
|
-
*/
|
|
2558
|
+
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
|
|
2778
2559
|
readonly cache: RequestCache;
|
|
2779
|
-
/**
|
|
2780
|
-
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
|
|
2781
|
-
*/
|
|
2560
|
+
/** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
|
|
2782
2561
|
readonly credentials: RequestCredentials;
|
|
2783
|
-
/**
|
|
2784
|
-
* Returns the kind of resource requested by request, e.g., "document" or "script".
|
|
2785
|
-
*/
|
|
2562
|
+
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
|
|
2786
2563
|
readonly destination: RequestDestination;
|
|
2787
|
-
/**
|
|
2788
|
-
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
|
|
2789
|
-
*/
|
|
2564
|
+
/** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
|
|
2790
2565
|
readonly headers: Headers;
|
|
2791
|
-
/**
|
|
2792
|
-
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
|
|
2793
|
-
*/
|
|
2566
|
+
/** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
|
|
2794
2567
|
readonly integrity: string;
|
|
2795
|
-
/**
|
|
2796
|
-
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
|
2797
|
-
*/
|
|
2568
|
+
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
|
|
2798
2569
|
readonly keepalive: boolean;
|
|
2799
|
-
/**
|
|
2800
|
-
* Returns request's HTTP method, which is "GET" by default.
|
|
2801
|
-
*/
|
|
2570
|
+
/** Returns request's HTTP method, which is "GET" by default. */
|
|
2802
2571
|
readonly method: string;
|
|
2803
|
-
/**
|
|
2804
|
-
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
|
|
2805
|
-
*/
|
|
2572
|
+
/** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
|
|
2806
2573
|
readonly mode: RequestMode;
|
|
2807
|
-
/**
|
|
2808
|
-
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
|
|
2809
|
-
*/
|
|
2574
|
+
/** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
|
|
2810
2575
|
readonly redirect: RequestRedirect;
|
|
2811
|
-
/**
|
|
2812
|
-
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made.
|
|
2813
|
-
*/
|
|
2576
|
+
/** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made. */
|
|
2814
2577
|
readonly referrer: string;
|
|
2815
|
-
/**
|
|
2816
|
-
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
|
|
2817
|
-
*/
|
|
2578
|
+
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
|
|
2818
2579
|
readonly referrerPolicy: ReferrerPolicy;
|
|
2819
|
-
/**
|
|
2820
|
-
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
|
|
2821
|
-
*/
|
|
2580
|
+
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
|
|
2822
2581
|
readonly signal: AbortSignal;
|
|
2823
|
-
/**
|
|
2824
|
-
* Returns the URL of request as a string.
|
|
2825
|
-
*/
|
|
2582
|
+
/** Returns the URL of request as a string. */
|
|
2826
2583
|
readonly url: string;
|
|
2827
2584
|
clone(): Request;
|
|
2828
2585
|
}
|
|
@@ -2882,7 +2639,7 @@ interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
|
2882
2639
|
readonly scriptURL: string;
|
|
2883
2640
|
readonly state: ServiceWorkerState;
|
|
2884
2641
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
2885
|
-
postMessage(message: any, options?:
|
|
2642
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
2886
2643
|
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2887
2644
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2888
2645
|
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2990,14 +2747,10 @@ interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2990
2747
|
}
|
|
2991
2748
|
|
|
2992
2749
|
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
|
|
2993
|
-
/**
|
|
2994
|
-
* Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.
|
|
2995
|
-
*/
|
|
2750
|
+
/** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */
|
|
2996
2751
|
readonly name: string;
|
|
2997
2752
|
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
2998
|
-
/**
|
|
2999
|
-
* Aborts sharedWorkerGlobal.
|
|
3000
|
-
*/
|
|
2753
|
+
/** Aborts sharedWorkerGlobal. */
|
|
3001
2754
|
close(): void;
|
|
3002
2755
|
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3003
2756
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -3069,17 +2822,11 @@ declare var TextDecoder: {
|
|
|
3069
2822
|
};
|
|
3070
2823
|
|
|
3071
2824
|
interface TextDecoderCommon {
|
|
3072
|
-
/**
|
|
3073
|
-
* Returns encoding's name, lowercased.
|
|
3074
|
-
*/
|
|
2825
|
+
/** Returns encoding's name, lowercased. */
|
|
3075
2826
|
readonly encoding: string;
|
|
3076
|
-
/**
|
|
3077
|
-
* Returns true if error mode is "fatal", otherwise false.
|
|
3078
|
-
*/
|
|
2827
|
+
/** Returns true if error mode is "fatal", otherwise false. */
|
|
3079
2828
|
readonly fatal: boolean;
|
|
3080
|
-
/**
|
|
3081
|
-
* Returns the value of ignore BOM.
|
|
3082
|
-
*/
|
|
2829
|
+
/** Returns the value of ignore BOM. */
|
|
3083
2830
|
readonly ignoreBOM: boolean;
|
|
3084
2831
|
}
|
|
3085
2832
|
|
|
@@ -3095,13 +2842,9 @@ declare var TextDecoderStream: {
|
|
|
3095
2842
|
|
|
3096
2843
|
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView – a C-like representation of strings based on typed arrays. */
|
|
3097
2844
|
interface TextEncoder extends TextEncoderCommon {
|
|
3098
|
-
/**
|
|
3099
|
-
* Returns the result of running UTF-8's encoder.
|
|
3100
|
-
*/
|
|
2845
|
+
/** Returns the result of running UTF-8's encoder. */
|
|
3101
2846
|
encode(input?: string): Uint8Array;
|
|
3102
|
-
/**
|
|
3103
|
-
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
|
|
3104
|
-
*/
|
|
2847
|
+
/** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
|
|
3105
2848
|
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
3106
2849
|
}
|
|
3107
2850
|
|
|
@@ -3111,9 +2854,7 @@ declare var TextEncoder: {
|
|
|
3111
2854
|
};
|
|
3112
2855
|
|
|
3113
2856
|
interface TextEncoderCommon {
|
|
3114
|
-
/**
|
|
3115
|
-
* Returns "utf-8".
|
|
3116
|
-
*/
|
|
2857
|
+
/** Returns "utf-8". */
|
|
3117
2858
|
readonly encoding: string;
|
|
3118
2859
|
}
|
|
3119
2860
|
|
|
@@ -3129,33 +2870,19 @@ declare var TextEncoderStream: {
|
|
|
3129
2870
|
|
|
3130
2871
|
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
|
|
3131
2872
|
interface TextMetrics {
|
|
3132
|
-
/**
|
|
3133
|
-
* Returns the measurement described below.
|
|
3134
|
-
*/
|
|
2873
|
+
/** Returns the measurement described below. */
|
|
3135
2874
|
readonly actualBoundingBoxAscent: number;
|
|
3136
|
-
/**
|
|
3137
|
-
* Returns the measurement described below.
|
|
3138
|
-
*/
|
|
2875
|
+
/** Returns the measurement described below. */
|
|
3139
2876
|
readonly actualBoundingBoxDescent: number;
|
|
3140
|
-
/**
|
|
3141
|
-
* Returns the measurement described below.
|
|
3142
|
-
*/
|
|
2877
|
+
/** Returns the measurement described below. */
|
|
3143
2878
|
readonly actualBoundingBoxLeft: number;
|
|
3144
|
-
/**
|
|
3145
|
-
* Returns the measurement described below.
|
|
3146
|
-
*/
|
|
2879
|
+
/** Returns the measurement described below. */
|
|
3147
2880
|
readonly actualBoundingBoxRight: number;
|
|
3148
|
-
/**
|
|
3149
|
-
* Returns the measurement described below.
|
|
3150
|
-
*/
|
|
2881
|
+
/** Returns the measurement described below. */
|
|
3151
2882
|
readonly fontBoundingBoxAscent: number;
|
|
3152
|
-
/**
|
|
3153
|
-
* Returns the measurement described below.
|
|
3154
|
-
*/
|
|
2883
|
+
/** Returns the measurement described below. */
|
|
3155
2884
|
readonly fontBoundingBoxDescent: number;
|
|
3156
|
-
/**
|
|
3157
|
-
* Returns the measurement described below.
|
|
3158
|
-
*/
|
|
2885
|
+
/** Returns the measurement described below. */
|
|
3159
2886
|
readonly width: number;
|
|
3160
2887
|
}
|
|
3161
2888
|
|
|
@@ -3207,39 +2934,25 @@ interface URL {
|
|
|
3207
2934
|
declare var URL: {
|
|
3208
2935
|
prototype: URL;
|
|
3209
2936
|
new(url: string | URL, base?: string | URL): URL;
|
|
3210
|
-
createObjectURL(
|
|
2937
|
+
createObjectURL(obj: Blob): string;
|
|
3211
2938
|
revokeObjectURL(url: string): void;
|
|
3212
2939
|
};
|
|
3213
2940
|
|
|
3214
2941
|
interface URLSearchParams {
|
|
3215
|
-
/**
|
|
3216
|
-
* Appends a specified key/value pair as a new search parameter.
|
|
3217
|
-
*/
|
|
2942
|
+
/** Appends a specified key/value pair as a new search parameter. */
|
|
3218
2943
|
append(name: string, value: string): void;
|
|
3219
|
-
/**
|
|
3220
|
-
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
|
|
3221
|
-
*/
|
|
2944
|
+
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
|
|
3222
2945
|
delete(name: string): void;
|
|
3223
|
-
/**
|
|
3224
|
-
* Returns the first value associated to the given search parameter.
|
|
3225
|
-
*/
|
|
2946
|
+
/** Returns the first value associated to the given search parameter. */
|
|
3226
2947
|
get(name: string): string | null;
|
|
3227
|
-
/**
|
|
3228
|
-
* Returns all the values association with a given search parameter.
|
|
3229
|
-
*/
|
|
2948
|
+
/** Returns all the values association with a given search parameter. */
|
|
3230
2949
|
getAll(name: string): string[];
|
|
3231
|
-
/**
|
|
3232
|
-
* Returns a Boolean indicating if such a search parameter exists.
|
|
3233
|
-
*/
|
|
2950
|
+
/** Returns a Boolean indicating if such a search parameter exists. */
|
|
3234
2951
|
has(name: string): boolean;
|
|
3235
|
-
/**
|
|
3236
|
-
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
|
|
3237
|
-
*/
|
|
2952
|
+
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
|
|
3238
2953
|
set(name: string, value: string): void;
|
|
3239
2954
|
sort(): void;
|
|
3240
|
-
/**
|
|
3241
|
-
* Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
|
|
3242
|
-
*/
|
|
2955
|
+
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
|
|
3243
2956
|
toString(): string;
|
|
3244
2957
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
3245
2958
|
}
|
|
@@ -5288,33 +5001,21 @@ interface WebSocket extends EventTarget {
|
|
|
5288
5001
|
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
|
|
5289
5002
|
*/
|
|
5290
5003
|
readonly bufferedAmount: number;
|
|
5291
|
-
/**
|
|
5292
|
-
* Returns the extensions selected by the server, if any.
|
|
5293
|
-
*/
|
|
5004
|
+
/** Returns the extensions selected by the server, if any. */
|
|
5294
5005
|
readonly extensions: string;
|
|
5295
5006
|
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
5296
5007
|
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
5297
5008
|
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
5298
5009
|
onopen: ((this: WebSocket, ev: Event) => any) | null;
|
|
5299
|
-
/**
|
|
5300
|
-
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
|
|
5301
|
-
*/
|
|
5010
|
+
/** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
|
|
5302
5011
|
readonly protocol: string;
|
|
5303
|
-
/**
|
|
5304
|
-
* Returns the state of the WebSocket object's connection. It can have the values described below.
|
|
5305
|
-
*/
|
|
5012
|
+
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
|
|
5306
5013
|
readonly readyState: number;
|
|
5307
|
-
/**
|
|
5308
|
-
* Returns the URL that was used to establish the WebSocket connection.
|
|
5309
|
-
*/
|
|
5014
|
+
/** Returns the URL that was used to establish the WebSocket connection. */
|
|
5310
5015
|
readonly url: string;
|
|
5311
|
-
/**
|
|
5312
|
-
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
|
|
5313
|
-
*/
|
|
5016
|
+
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
|
|
5314
5017
|
close(code?: number, reason?: string): void;
|
|
5315
|
-
/**
|
|
5316
|
-
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
|
|
5317
|
-
*/
|
|
5018
|
+
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
|
|
5318
5019
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
5319
5020
|
readonly CLOSED: number;
|
|
5320
5021
|
readonly CLOSING: number;
|
|
@@ -5377,14 +5078,10 @@ interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
|
5377
5078
|
interface Worker extends EventTarget, AbstractWorker {
|
|
5378
5079
|
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
5379
5080
|
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
5380
|
-
/**
|
|
5381
|
-
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
5382
|
-
*/
|
|
5081
|
+
/** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
|
|
5383
5082
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
5384
|
-
postMessage(message: any, options?:
|
|
5385
|
-
/**
|
|
5386
|
-
* Aborts worker's associated global environment.
|
|
5387
|
-
*/
|
|
5083
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
5084
|
+
/** Aborts worker's associated global environment. */
|
|
5388
5085
|
terminate(): void;
|
|
5389
5086
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5390
5087
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5408,13 +5105,9 @@ interface WorkerGlobalScopeEventMap {
|
|
|
5408
5105
|
|
|
5409
5106
|
/** This Web Workers API interface 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. */
|
|
5410
5107
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
5411
|
-
/**
|
|
5412
|
-
* Returns workerGlobal's WorkerLocation object.
|
|
5413
|
-
*/
|
|
5108
|
+
/** Returns workerGlobal's WorkerLocation object. */
|
|
5414
5109
|
readonly location: WorkerLocation;
|
|
5415
|
-
/**
|
|
5416
|
-
* Returns workerGlobal's WorkerNavigator object.
|
|
5417
|
-
*/
|
|
5110
|
+
/** Returns workerGlobal's WorkerNavigator object. */
|
|
5418
5111
|
readonly navigator: WorkerNavigator;
|
|
5419
5112
|
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
5420
5113
|
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
@@ -5422,13 +5115,9 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
5422
5115
|
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
5423
5116
|
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5424
5117
|
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5425
|
-
/**
|
|
5426
|
-
* Returns workerGlobal.
|
|
5427
|
-
*/
|
|
5118
|
+
/** Returns workerGlobal. */
|
|
5428
5119
|
readonly self: WorkerGlobalScope & typeof globalThis;
|
|
5429
|
-
/**
|
|
5430
|
-
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
|
|
5431
|
-
*/
|
|
5120
|
+
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
|
|
5432
5121
|
importScripts(...urls: (string | URL)[]): void;
|
|
5433
5122
|
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5434
5123
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5516,13 +5205,9 @@ interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
|
|
|
5516
5205
|
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
|
|
5517
5206
|
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
5518
5207
|
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
5519
|
-
/**
|
|
5520
|
-
* Returns client's state.
|
|
5521
|
-
*/
|
|
5208
|
+
/** Returns client's state. */
|
|
5522
5209
|
readonly readyState: number;
|
|
5523
|
-
/**
|
|
5524
|
-
* Returns the response body.
|
|
5525
|
-
*/
|
|
5210
|
+
/** Returns the response body. */
|
|
5526
5211
|
readonly response: any;
|
|
5527
5212
|
/**
|
|
5528
5213
|
* Returns response as text.
|
|
@@ -5551,9 +5236,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
5551
5236
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
5552
5237
|
*/
|
|
5553
5238
|
timeout: number;
|
|
5554
|
-
/**
|
|
5555
|
-
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
|
|
5556
|
-
*/
|
|
5239
|
+
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
|
|
5557
5240
|
readonly upload: XMLHttpRequestUpload;
|
|
5558
5241
|
/**
|
|
5559
5242
|
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
|
|
@@ -5561,9 +5244,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
5561
5244
|
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
|
|
5562
5245
|
*/
|
|
5563
5246
|
withCredentials: boolean;
|
|
5564
|
-
/**
|
|
5565
|
-
* Cancels any network activity.
|
|
5566
|
-
*/
|
|
5247
|
+
/** Cancels any network activity. */
|
|
5567
5248
|
abort(): void;
|
|
5568
5249
|
getAllResponseHeaders(): string;
|
|
5569
5250
|
getResponseHeader(name: string): string | null;
|
|
@@ -5871,32 +5552,20 @@ interface VoidFunction {
|
|
|
5871
5552
|
(): void;
|
|
5872
5553
|
}
|
|
5873
5554
|
|
|
5874
|
-
/**
|
|
5875
|
-
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
|
5876
|
-
*/
|
|
5555
|
+
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
|
|
5877
5556
|
declare var name: string;
|
|
5878
5557
|
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
5879
5558
|
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
5880
|
-
/**
|
|
5881
|
-
* Aborts dedicatedWorkerGlobal.
|
|
5882
|
-
*/
|
|
5559
|
+
/** Aborts dedicatedWorkerGlobal. */
|
|
5883
5560
|
declare function close(): void;
|
|
5884
|
-
/**
|
|
5885
|
-
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
|
|
5886
|
-
*/
|
|
5561
|
+
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
|
|
5887
5562
|
declare function postMessage(message: any, transfer: Transferable[]): void;
|
|
5888
|
-
declare function postMessage(message: any, options?:
|
|
5889
|
-
/**
|
|
5890
|
-
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
5891
|
-
*/
|
|
5563
|
+
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
5564
|
+
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
5892
5565
|
declare function dispatchEvent(event: Event): boolean;
|
|
5893
|
-
/**
|
|
5894
|
-
* Returns workerGlobal's WorkerLocation object.
|
|
5895
|
-
*/
|
|
5566
|
+
/** Returns workerGlobal's WorkerLocation object. */
|
|
5896
5567
|
declare var location: WorkerLocation;
|
|
5897
|
-
/**
|
|
5898
|
-
* Returns workerGlobal's WorkerNavigator object.
|
|
5899
|
-
*/
|
|
5568
|
+
/** Returns workerGlobal's WorkerNavigator object. */
|
|
5900
5569
|
declare var navigator: WorkerNavigator;
|
|
5901
5570
|
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
5902
5571
|
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
@@ -5904,17 +5573,11 @@ declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) |
|
|
|
5904
5573
|
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
5905
5574
|
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5906
5575
|
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5907
|
-
/**
|
|
5908
|
-
* Returns workerGlobal.
|
|
5909
|
-
*/
|
|
5576
|
+
/** Returns workerGlobal. */
|
|
5910
5577
|
declare var self: WorkerGlobalScope & typeof globalThis;
|
|
5911
|
-
/**
|
|
5912
|
-
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
|
|
5913
|
-
*/
|
|
5578
|
+
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
|
|
5914
5579
|
declare function importScripts(...urls: (string | URL)[]): void;
|
|
5915
|
-
/**
|
|
5916
|
-
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
|
|
5917
|
-
*/
|
|
5580
|
+
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
|
|
5918
5581
|
declare function dispatchEvent(event: Event): boolean;
|
|
5919
5582
|
declare var fonts: FontFaceSet;
|
|
5920
5583
|
declare var caches: CacheStorage;
|
|
@@ -6005,7 +5668,7 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
|
6005
5668
|
type MediaEncodingType = "record" | "webrtc";
|
|
6006
5669
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
6007
5670
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
6008
|
-
type PermissionName = "
|
|
5671
|
+
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
|
|
6009
5672
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
6010
5673
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
6011
5674
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|