typescript 4.4.4 → 4.5.2
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/SECURITY.md +41 -0
- package/lib/cancellationToken.js +1 -1
- package/lib/cs/diagnosticMessages.generated.json +53 -61
- package/lib/de/diagnosticMessages.generated.json +56 -64
- package/lib/es/diagnosticMessages.generated.json +54 -62
- package/lib/fr/diagnosticMessages.generated.json +56 -64
- package/lib/it/diagnosticMessages.generated.json +56 -64
- package/lib/ja/diagnosticMessages.generated.json +56 -64
- package/lib/ko/diagnosticMessages.generated.json +53 -61
- package/lib/lib.dom.d.ts +854 -1987
- package/lib/lib.dom.iterable.d.ts +17 -55
- package/lib/lib.es2015.core.d.ts +53 -13
- package/lib/lib.es2015.iterable.d.ts +2 -10
- package/lib/lib.es2015.promise.d.ts +2 -74
- package/lib/lib.es2018.intl.d.ts +23 -11
- package/lib/lib.es2019.string.d.ts +8 -2
- package/lib/lib.es2020.intl.d.ts +173 -114
- package/lib/lib.es2020.promise.d.ts +2 -3
- package/lib/lib.es2021.d.ts +1 -0
- package/lib/lib.es2021.intl.d.ts +44 -0
- package/lib/lib.es2021.promise.d.ts +8 -1
- package/lib/lib.es5.d.ts +103 -43
- package/lib/lib.esnext.intl.d.ts +1 -10
- package/lib/lib.webworker.d.ts +241 -537
- package/lib/lib.webworker.iterable.d.ts +10 -37
- package/lib/pl/diagnosticMessages.generated.json +56 -64
- package/lib/protocol.d.ts +8 -0
- package/lib/pt-br/diagnosticMessages.generated.json +56 -64
- package/lib/ru/diagnosticMessages.generated.json +54 -62
- package/lib/tr/diagnosticMessages.generated.json +56 -64
- package/lib/tsc.js +7888 -5950
- package/lib/tsserver.js +13027 -9749
- package/lib/tsserverlibrary.d.ts +411 -287
- package/lib/tsserverlibrary.js +13002 -9724
- package/lib/typescript.d.ts +401 -285
- package/lib/typescript.js +12879 -9617
- package/lib/typescriptServices.d.ts +401 -285
- package/lib/typescriptServices.js +12879 -9617
- package/lib/typingsInstaller.js +9179 -6936
- package/lib/zh-cn/diagnosticMessages.generated.json +56 -64
- package/lib/zh-tw/diagnosticMessages.generated.json +56 -64
- package/package.json +5 -7
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,58 +472,32 @@ 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
|
-
|
|
529
|
-
*/
|
|
530
|
-
window?: any;
|
|
499
|
+
/** Can only be null. Used to disassociate request from any Window. */
|
|
500
|
+
window?: null;
|
|
531
501
|
}
|
|
532
502
|
|
|
533
503
|
interface ResponseInit {
|
|
@@ -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; - To be re-added in the future
|
|
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;
|
|
@@ -809,7 +772,10 @@ declare var ByteLengthQueuingStrategy: {
|
|
|
809
772
|
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
|
|
810
773
|
};
|
|
811
774
|
|
|
812
|
-
/**
|
|
775
|
+
/**
|
|
776
|
+
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. 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.
|
|
777
|
+
* Available only in secure contexts.
|
|
778
|
+
*/
|
|
813
779
|
interface Cache {
|
|
814
780
|
add(request: RequestInfo): Promise<void>;
|
|
815
781
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
@@ -825,7 +791,10 @@ declare var Cache: {
|
|
|
825
791
|
new(): Cache;
|
|
826
792
|
};
|
|
827
793
|
|
|
828
|
-
/**
|
|
794
|
+
/**
|
|
795
|
+
* The storage for Cache objects.
|
|
796
|
+
* Available only in secure contexts.
|
|
797
|
+
*/
|
|
829
798
|
interface CacheStorage {
|
|
830
799
|
delete(cacheName: string): Promise<boolean>;
|
|
831
800
|
has(cacheName: string): Promise<boolean>;
|
|
@@ -868,9 +837,7 @@ interface CanvasPath {
|
|
|
868
837
|
|
|
869
838
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
870
839
|
interface CanvasPattern {
|
|
871
|
-
/**
|
|
872
|
-
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
|
|
873
|
-
*/
|
|
840
|
+
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
|
|
874
841
|
setTransform(transform?: DOMMatrix2DInit): void;
|
|
875
842
|
}
|
|
876
843
|
|
|
@@ -886,7 +853,7 @@ interface Client {
|
|
|
886
853
|
readonly type: ClientTypes;
|
|
887
854
|
readonly url: string;
|
|
888
855
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
889
|
-
postMessage(message: any, options?:
|
|
856
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
890
857
|
}
|
|
891
858
|
|
|
892
859
|
declare var Client: {
|
|
@@ -909,17 +876,11 @@ declare var Clients: {
|
|
|
909
876
|
|
|
910
877
|
/** 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
878
|
interface CloseEvent extends Event {
|
|
912
|
-
/**
|
|
913
|
-
* Returns the WebSocket connection close code provided by the server.
|
|
914
|
-
*/
|
|
879
|
+
/** Returns the WebSocket connection close code provided by the server. */
|
|
915
880
|
readonly code: number;
|
|
916
|
-
/**
|
|
917
|
-
* Returns the WebSocket connection close reason provided by the server.
|
|
918
|
-
*/
|
|
881
|
+
/** Returns the WebSocket connection close reason provided by the server. */
|
|
919
882
|
readonly reason: string;
|
|
920
|
-
/**
|
|
921
|
-
* Returns true if the connection closed cleanly; false otherwise.
|
|
922
|
-
*/
|
|
883
|
+
/** Returns true if the connection closed cleanly; false otherwise. */
|
|
923
884
|
readonly wasClean: boolean;
|
|
924
885
|
}
|
|
925
886
|
|
|
@@ -941,6 +902,7 @@ declare var CountQueuingStrategy: {
|
|
|
941
902
|
|
|
942
903
|
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
|
|
943
904
|
interface Crypto {
|
|
905
|
+
/** Available only in secure contexts. */
|
|
944
906
|
readonly subtle: SubtleCrypto;
|
|
945
907
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
946
908
|
}
|
|
@@ -950,7 +912,10 @@ declare var Crypto: {
|
|
|
950
912
|
new(): Crypto;
|
|
951
913
|
};
|
|
952
914
|
|
|
953
|
-
/**
|
|
915
|
+
/**
|
|
916
|
+
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
|
|
917
|
+
* Available only in secure contexts.
|
|
918
|
+
*/
|
|
954
919
|
interface CryptoKey {
|
|
955
920
|
readonly algorithm: KeyAlgorithm;
|
|
956
921
|
readonly extractable: boolean;
|
|
@@ -964,9 +929,7 @@ declare var CryptoKey: {
|
|
|
964
929
|
};
|
|
965
930
|
|
|
966
931
|
interface CustomEvent<T = any> extends Event {
|
|
967
|
-
/**
|
|
968
|
-
* Returns any custom data event was created with. Typically used for synthetic events.
|
|
969
|
-
*/
|
|
932
|
+
/** Returns any custom data event was created with. Typically used for synthetic events. */
|
|
970
933
|
readonly detail: T;
|
|
971
934
|
/** @deprecated */
|
|
972
935
|
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
|
|
@@ -978,7 +941,7 @@ declare var CustomEvent: {
|
|
|
978
941
|
};
|
|
979
942
|
|
|
980
943
|
/** 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 {
|
|
944
|
+
interface DOMException extends Error {
|
|
982
945
|
readonly code: number;
|
|
983
946
|
readonly message: string;
|
|
984
947
|
readonly name: string;
|
|
@@ -1213,17 +1176,11 @@ declare var DOMRectReadOnly: {
|
|
|
1213
1176
|
|
|
1214
1177
|
/** A type returned by some APIs which contains a list of DOMString (strings). */
|
|
1215
1178
|
interface DOMStringList {
|
|
1216
|
-
/**
|
|
1217
|
-
* Returns the number of strings in strings.
|
|
1218
|
-
*/
|
|
1179
|
+
/** Returns the number of strings in strings. */
|
|
1219
1180
|
readonly length: number;
|
|
1220
|
-
/**
|
|
1221
|
-
* Returns true if strings contains string, and false otherwise.
|
|
1222
|
-
*/
|
|
1181
|
+
/** Returns true if strings contains string, and false otherwise. */
|
|
1223
1182
|
contains(string: string): boolean;
|
|
1224
|
-
/**
|
|
1225
|
-
* Returns the string with index index from strings.
|
|
1226
|
-
*/
|
|
1183
|
+
/** Returns the string with index index from strings. */
|
|
1227
1184
|
item(index: number): string | null;
|
|
1228
1185
|
[index: number]: string;
|
|
1229
1186
|
}
|
|
@@ -1240,21 +1197,15 @@ interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
1240
1197
|
|
|
1241
1198
|
/** (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
1199
|
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
|
-
*/
|
|
1200
|
+
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
|
|
1246
1201
|
readonly name: string;
|
|
1247
1202
|
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
1248
1203
|
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
1249
|
-
/**
|
|
1250
|
-
* Aborts dedicatedWorkerGlobal.
|
|
1251
|
-
*/
|
|
1204
|
+
/** Aborts dedicatedWorkerGlobal. */
|
|
1252
1205
|
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
|
-
*/
|
|
1206
|
+
/** 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
1207
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
1257
|
-
postMessage(message: any, options?:
|
|
1208
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
1258
1209
|
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1259
1210
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1260
1211
|
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -1327,68 +1278,40 @@ declare var ErrorEvent: {
|
|
|
1327
1278
|
|
|
1328
1279
|
/** An event which takes place in the DOM. */
|
|
1329
1280
|
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
|
-
*/
|
|
1281
|
+
/** 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
1282
|
readonly bubbles: boolean;
|
|
1334
1283
|
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
|
-
*/
|
|
1284
|
+
/** 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
1285
|
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
|
-
*/
|
|
1286
|
+
/** 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
1287
|
readonly composed: boolean;
|
|
1343
|
-
/**
|
|
1344
|
-
* Returns the object whose event listener's callback is currently being invoked.
|
|
1345
|
-
*/
|
|
1288
|
+
/** Returns the object whose event listener's callback is currently being invoked. */
|
|
1346
1289
|
readonly currentTarget: EventTarget | null;
|
|
1347
|
-
/**
|
|
1348
|
-
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
|
|
1349
|
-
*/
|
|
1290
|
+
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
|
|
1350
1291
|
readonly defaultPrevented: boolean;
|
|
1351
|
-
/**
|
|
1352
|
-
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
|
|
1353
|
-
*/
|
|
1292
|
+
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
|
|
1354
1293
|
readonly eventPhase: number;
|
|
1355
|
-
/**
|
|
1356
|
-
* Returns true if event was dispatched by the user agent, and false otherwise.
|
|
1357
|
-
*/
|
|
1294
|
+
/** Returns true if event was dispatched by the user agent, and false otherwise. */
|
|
1358
1295
|
readonly isTrusted: boolean;
|
|
1359
1296
|
/** @deprecated */
|
|
1360
1297
|
returnValue: boolean;
|
|
1361
1298
|
/** @deprecated */
|
|
1362
1299
|
readonly srcElement: EventTarget | null;
|
|
1363
|
-
/**
|
|
1364
|
-
* Returns the object to which event is dispatched (its target).
|
|
1365
|
-
*/
|
|
1300
|
+
/** Returns the object to which event is dispatched (its target). */
|
|
1366
1301
|
readonly target: EventTarget | null;
|
|
1367
|
-
/**
|
|
1368
|
-
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
|
|
1369
|
-
*/
|
|
1302
|
+
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
|
|
1370
1303
|
readonly timeStamp: DOMHighResTimeStamp;
|
|
1371
|
-
/**
|
|
1372
|
-
* Returns the type of event, e.g. "click", "hashchange", or "submit".
|
|
1373
|
-
*/
|
|
1304
|
+
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
|
|
1374
1305
|
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
|
-
*/
|
|
1306
|
+
/** 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
1307
|
composedPath(): EventTarget[];
|
|
1379
1308
|
/** @deprecated */
|
|
1380
1309
|
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
|
-
*/
|
|
1310
|
+
/** 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
1311
|
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
|
-
*/
|
|
1312
|
+
/** 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
1313
|
stopImmediatePropagation(): void;
|
|
1389
|
-
/**
|
|
1390
|
-
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
|
|
1391
|
-
*/
|
|
1314
|
+
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
|
|
1392
1315
|
stopPropagation(): void;
|
|
1393
1316
|
readonly AT_TARGET: number;
|
|
1394
1317
|
readonly BUBBLING_PHASE: number;
|
|
@@ -1423,21 +1346,13 @@ interface EventSource extends EventTarget {
|
|
|
1423
1346
|
onerror: ((this: EventSource, ev: Event) => any) | null;
|
|
1424
1347
|
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
|
|
1425
1348
|
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
|
-
*/
|
|
1349
|
+
/** Returns the state of this EventSource object's connection. It can have the values described below. */
|
|
1429
1350
|
readonly readyState: number;
|
|
1430
|
-
/**
|
|
1431
|
-
* Returns the URL providing the event stream.
|
|
1432
|
-
*/
|
|
1351
|
+
/** Returns the URL providing the event stream. */
|
|
1433
1352
|
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
|
-
*/
|
|
1353
|
+
/** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
|
|
1437
1354
|
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
|
-
*/
|
|
1355
|
+
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
|
|
1441
1356
|
close(): void;
|
|
1442
1357
|
readonly CLOSED: number;
|
|
1443
1358
|
readonly CONNECTING: number;
|
|
@@ -1474,13 +1389,9 @@ interface EventTarget {
|
|
|
1474
1389
|
* 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
1390
|
*/
|
|
1476
1391
|
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
|
-
*/
|
|
1392
|
+
/** 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
1393
|
dispatchEvent(event: Event): boolean;
|
|
1481
|
-
/**
|
|
1482
|
-
* Removes the event listener in target's event listener list with the same type, callback, and options.
|
|
1483
|
-
*/
|
|
1394
|
+
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
|
|
1484
1395
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
1485
1396
|
}
|
|
1486
1397
|
|
|
@@ -1707,34 +1618,20 @@ declare var Headers: {
|
|
|
1707
1618
|
|
|
1708
1619
|
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
|
|
1709
1620
|
interface IDBCursor {
|
|
1710
|
-
/**
|
|
1711
|
-
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
|
|
1712
|
-
*/
|
|
1621
|
+
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
|
|
1713
1622
|
readonly direction: IDBCursorDirection;
|
|
1714
|
-
/**
|
|
1715
|
-
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
|
|
1716
|
-
*/
|
|
1623
|
+
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
|
|
1717
1624
|
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
|
-
*/
|
|
1625
|
+
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
|
|
1721
1626
|
readonly primaryKey: IDBValidKey;
|
|
1722
1627
|
readonly request: IDBRequest;
|
|
1723
|
-
/**
|
|
1724
|
-
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
|
|
1725
|
-
*/
|
|
1628
|
+
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
|
|
1726
1629
|
readonly source: IDBObjectStore | IDBIndex;
|
|
1727
|
-
/**
|
|
1728
|
-
* Advances the cursor through the next count records in range.
|
|
1729
|
-
*/
|
|
1630
|
+
/** Advances the cursor through the next count records in range. */
|
|
1730
1631
|
advance(count: number): void;
|
|
1731
|
-
/**
|
|
1732
|
-
* Advances the cursor to the next record in range.
|
|
1733
|
-
*/
|
|
1632
|
+
/** Advances the cursor to the next record in range. */
|
|
1734
1633
|
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
|
-
*/
|
|
1634
|
+
/** 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
1635
|
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
|
|
1739
1636
|
/**
|
|
1740
1637
|
* Delete the record pointed at by the cursor with a new value.
|
|
@@ -1759,9 +1656,7 @@ declare var IDBCursor: {
|
|
|
1759
1656
|
|
|
1760
1657
|
/** 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
1658
|
interface IDBCursorWithValue extends IDBCursor {
|
|
1762
|
-
/**
|
|
1763
|
-
* Returns the cursor's current value.
|
|
1764
|
-
*/
|
|
1659
|
+
/** Returns the cursor's current value. */
|
|
1765
1660
|
readonly value: any;
|
|
1766
1661
|
}
|
|
1767
1662
|
|
|
@@ -1779,25 +1674,17 @@ interface IDBDatabaseEventMap {
|
|
|
1779
1674
|
|
|
1780
1675
|
/** 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
1676
|
interface IDBDatabase extends EventTarget {
|
|
1782
|
-
/**
|
|
1783
|
-
* Returns the name of the database.
|
|
1784
|
-
*/
|
|
1677
|
+
/** Returns the name of the database. */
|
|
1785
1678
|
readonly name: string;
|
|
1786
|
-
/**
|
|
1787
|
-
* Returns a list of the names of object stores in the database.
|
|
1788
|
-
*/
|
|
1679
|
+
/** Returns a list of the names of object stores in the database. */
|
|
1789
1680
|
readonly objectStoreNames: DOMStringList;
|
|
1790
1681
|
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1791
1682
|
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1792
1683
|
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
|
|
1793
1684
|
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
|
|
1794
|
-
/**
|
|
1795
|
-
* Returns the version of the database.
|
|
1796
|
-
*/
|
|
1685
|
+
/** Returns the version of the database. */
|
|
1797
1686
|
readonly version: number;
|
|
1798
|
-
/**
|
|
1799
|
-
* Closes the connection once all running transactions have finished.
|
|
1800
|
-
*/
|
|
1687
|
+
/** Closes the connection once all running transactions have finished. */
|
|
1801
1688
|
close(): void;
|
|
1802
1689
|
/**
|
|
1803
1690
|
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
|
|
@@ -1811,9 +1698,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1811
1698
|
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
1812
1699
|
*/
|
|
1813
1700
|
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
|
-
*/
|
|
1701
|
+
/** 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
1702
|
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1818
1703
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1819
1704
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1835,13 +1720,9 @@ interface IDBFactory {
|
|
|
1835
1720
|
*/
|
|
1836
1721
|
cmp(first: any, second: any): number;
|
|
1837
1722
|
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
|
-
*/
|
|
1723
|
+
/** 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
1724
|
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
|
-
*/
|
|
1725
|
+
/** 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
1726
|
open(name: string, version?: number): IDBOpenDBRequest;
|
|
1846
1727
|
}
|
|
1847
1728
|
|
|
@@ -1854,13 +1735,9 @@ declare var IDBFactory: {
|
|
|
1854
1735
|
interface IDBIndex {
|
|
1855
1736
|
readonly keyPath: string | string[];
|
|
1856
1737
|
readonly multiEntry: boolean;
|
|
1857
|
-
/**
|
|
1858
|
-
* Returns the name of the index.
|
|
1859
|
-
*/
|
|
1738
|
+
/** Returns the name of the index. */
|
|
1860
1739
|
name: string;
|
|
1861
|
-
/**
|
|
1862
|
-
* Returns the IDBObjectStore the index belongs to.
|
|
1863
|
-
*/
|
|
1740
|
+
/** Returns the IDBObjectStore the index belongs to. */
|
|
1864
1741
|
readonly objectStore: IDBObjectStore;
|
|
1865
1742
|
readonly unique: boolean;
|
|
1866
1743
|
/**
|
|
@@ -1914,70 +1791,42 @@ declare var IDBIndex: {
|
|
|
1914
1791
|
|
|
1915
1792
|
/** 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
1793
|
interface IDBKeyRange {
|
|
1917
|
-
/**
|
|
1918
|
-
* Returns lower bound, or undefined if none.
|
|
1919
|
-
*/
|
|
1794
|
+
/** Returns lower bound, or undefined if none. */
|
|
1920
1795
|
readonly lower: any;
|
|
1921
|
-
/**
|
|
1922
|
-
* Returns true if the lower open flag is set, and false otherwise.
|
|
1923
|
-
*/
|
|
1796
|
+
/** Returns true if the lower open flag is set, and false otherwise. */
|
|
1924
1797
|
readonly lowerOpen: boolean;
|
|
1925
|
-
/**
|
|
1926
|
-
* Returns upper bound, or undefined if none.
|
|
1927
|
-
*/
|
|
1798
|
+
/** Returns upper bound, or undefined if none. */
|
|
1928
1799
|
readonly upper: any;
|
|
1929
|
-
/**
|
|
1930
|
-
* Returns true if the upper open flag is set, and false otherwise.
|
|
1931
|
-
*/
|
|
1800
|
+
/** Returns true if the upper open flag is set, and false otherwise. */
|
|
1932
1801
|
readonly upperOpen: boolean;
|
|
1933
|
-
/**
|
|
1934
|
-
* Returns true if key is included in the range, and false otherwise.
|
|
1935
|
-
*/
|
|
1802
|
+
/** Returns true if key is included in the range, and false otherwise. */
|
|
1936
1803
|
includes(key: any): boolean;
|
|
1937
1804
|
}
|
|
1938
1805
|
|
|
1939
1806
|
declare var IDBKeyRange: {
|
|
1940
1807
|
prototype: IDBKeyRange;
|
|
1941
1808
|
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
|
-
*/
|
|
1809
|
+
/** 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
1810
|
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
|
-
*/
|
|
1811
|
+
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
|
|
1949
1812
|
lowerBound(lower: any, open?: boolean): IDBKeyRange;
|
|
1950
|
-
/**
|
|
1951
|
-
* Returns a new IDBKeyRange spanning only key.
|
|
1952
|
-
*/
|
|
1813
|
+
/** Returns a new IDBKeyRange spanning only key. */
|
|
1953
1814
|
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
|
-
*/
|
|
1815
|
+
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
|
|
1957
1816
|
upperBound(upper: any, open?: boolean): IDBKeyRange;
|
|
1958
1817
|
};
|
|
1959
1818
|
|
|
1960
1819
|
/** 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
1820
|
interface IDBObjectStore {
|
|
1962
|
-
/**
|
|
1963
|
-
* Returns true if the store has a key generator, and false otherwise.
|
|
1964
|
-
*/
|
|
1821
|
+
/** Returns true if the store has a key generator, and false otherwise. */
|
|
1965
1822
|
readonly autoIncrement: boolean;
|
|
1966
|
-
/**
|
|
1967
|
-
* Returns a list of the names of indexes in the store.
|
|
1968
|
-
*/
|
|
1823
|
+
/** Returns a list of the names of indexes in the store. */
|
|
1969
1824
|
readonly indexNames: DOMStringList;
|
|
1970
|
-
/**
|
|
1971
|
-
* Returns the key path of the store, or null if none.
|
|
1972
|
-
*/
|
|
1825
|
+
/** Returns the key path of the store, or null if none. */
|
|
1973
1826
|
readonly keyPath: string | string[];
|
|
1974
|
-
/**
|
|
1975
|
-
* Returns the name of the store.
|
|
1976
|
-
*/
|
|
1827
|
+
/** Returns the name of the store. */
|
|
1977
1828
|
name: string;
|
|
1978
|
-
/**
|
|
1979
|
-
* Returns the associated transaction.
|
|
1980
|
-
*/
|
|
1829
|
+
/** Returns the associated transaction. */
|
|
1981
1830
|
readonly transaction: IDBTransaction;
|
|
1982
1831
|
/**
|
|
1983
1832
|
* Adds or updates a record in store with the given value and key.
|
|
@@ -2100,27 +1949,17 @@ interface IDBRequestEventMap {
|
|
|
2100
1949
|
|
|
2101
1950
|
/** 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
1951
|
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
|
-
*/
|
|
1952
|
+
/** 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
1953
|
readonly error: DOMException | null;
|
|
2107
1954
|
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
2108
1955
|
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
|
|
2109
|
-
/**
|
|
2110
|
-
* Returns "pending" until a request is complete, then returns "done".
|
|
2111
|
-
*/
|
|
1956
|
+
/** Returns "pending" until a request is complete, then returns "done". */
|
|
2112
1957
|
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
|
-
*/
|
|
1958
|
+
/** 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
1959
|
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
|
-
*/
|
|
1960
|
+
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
|
|
2120
1961
|
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
|
-
*/
|
|
1962
|
+
/** 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
1963
|
readonly transaction: IDBTransaction | null;
|
|
2125
1964
|
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2126
1965
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2140,33 +1979,21 @@ interface IDBTransactionEventMap {
|
|
|
2140
1979
|
}
|
|
2141
1980
|
|
|
2142
1981
|
interface IDBTransaction extends EventTarget {
|
|
2143
|
-
/**
|
|
2144
|
-
* Returns the transaction's connection.
|
|
2145
|
-
*/
|
|
1982
|
+
/** Returns the transaction's connection. */
|
|
2146
1983
|
readonly db: IDBDatabase;
|
|
2147
|
-
/**
|
|
2148
|
-
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
|
|
2149
|
-
*/
|
|
1984
|
+
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
2150
1985
|
readonly error: DOMException | null;
|
|
2151
|
-
/**
|
|
2152
|
-
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
|
|
2153
|
-
*/
|
|
1986
|
+
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
2154
1987
|
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
|
-
*/
|
|
1988
|
+
/** 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
1989
|
readonly objectStoreNames: DOMStringList;
|
|
2159
1990
|
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2160
1991
|
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
|
|
2161
1992
|
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
|
-
*/
|
|
1993
|
+
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
|
|
2165
1994
|
abort(): void;
|
|
2166
1995
|
commit(): void;
|
|
2167
|
-
/**
|
|
2168
|
-
* Returns an IDBObjectStore in the transaction's scope.
|
|
2169
|
-
*/
|
|
1996
|
+
/** Returns an IDBObjectStore in the transaction's scope. */
|
|
2170
1997
|
objectStore(name: string): IDBObjectStore;
|
|
2171
1998
|
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2172
1999
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2191,17 +2018,11 @@ declare var IDBVersionChangeEvent: {
|
|
|
2191
2018
|
};
|
|
2192
2019
|
|
|
2193
2020
|
interface ImageBitmap {
|
|
2194
|
-
/**
|
|
2195
|
-
* Returns the intrinsic height of the image, in CSS pixels.
|
|
2196
|
-
*/
|
|
2021
|
+
/** Returns the intrinsic height of the image, in CSS pixels. */
|
|
2197
2022
|
readonly height: number;
|
|
2198
|
-
/**
|
|
2199
|
-
* Returns the intrinsic width of the image, in CSS pixels.
|
|
2200
|
-
*/
|
|
2023
|
+
/** Returns the intrinsic width of the image, in CSS pixels. */
|
|
2201
2024
|
readonly width: number;
|
|
2202
|
-
/**
|
|
2203
|
-
* Releases imageBitmap's underlying bitmap data.
|
|
2204
|
-
*/
|
|
2025
|
+
/** Releases imageBitmap's underlying bitmap data. */
|
|
2205
2026
|
close(): void;
|
|
2206
2027
|
}
|
|
2207
2028
|
|
|
@@ -2211,9 +2032,7 @@ declare var ImageBitmap: {
|
|
|
2211
2032
|
};
|
|
2212
2033
|
|
|
2213
2034
|
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
|
-
*/
|
|
2035
|
+
/** 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
2036
|
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
|
|
2218
2037
|
}
|
|
2219
2038
|
|
|
@@ -2224,17 +2043,11 @@ declare var ImageBitmapRenderingContext: {
|
|
|
2224
2043
|
|
|
2225
2044
|
/** 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
2045
|
interface ImageData {
|
|
2227
|
-
/**
|
|
2228
|
-
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
|
|
2229
|
-
*/
|
|
2046
|
+
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
2230
2047
|
readonly data: Uint8ClampedArray;
|
|
2231
|
-
/**
|
|
2232
|
-
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
2233
|
-
*/
|
|
2048
|
+
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
2234
2049
|
readonly height: number;
|
|
2235
|
-
/**
|
|
2236
|
-
* Returns the actual dimensions of the data in the ImageData object, in pixels.
|
|
2237
|
-
*/
|
|
2050
|
+
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
2238
2051
|
readonly width: number;
|
|
2239
2052
|
}
|
|
2240
2053
|
|
|
@@ -2260,13 +2073,9 @@ declare var MediaCapabilities: {
|
|
|
2260
2073
|
|
|
2261
2074
|
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
|
|
2262
2075
|
interface MessageChannel {
|
|
2263
|
-
/**
|
|
2264
|
-
* Returns the first MessagePort object.
|
|
2265
|
-
*/
|
|
2076
|
+
/** Returns the first MessagePort object. */
|
|
2266
2077
|
readonly port1: MessagePort;
|
|
2267
|
-
/**
|
|
2268
|
-
* Returns the second MessagePort object.
|
|
2269
|
-
*/
|
|
2078
|
+
/** Returns the second MessagePort object. */
|
|
2270
2079
|
readonly port2: MessagePort;
|
|
2271
2080
|
}
|
|
2272
2081
|
|
|
@@ -2277,25 +2086,15 @@ declare var MessageChannel: {
|
|
|
2277
2086
|
|
|
2278
2087
|
/** A message received by a target object. */
|
|
2279
2088
|
interface MessageEvent<T = any> extends Event {
|
|
2280
|
-
/**
|
|
2281
|
-
* Returns the data of the message.
|
|
2282
|
-
*/
|
|
2089
|
+
/** Returns the data of the message. */
|
|
2283
2090
|
readonly data: T;
|
|
2284
|
-
/**
|
|
2285
|
-
* Returns the last event ID string, for server-sent events.
|
|
2286
|
-
*/
|
|
2091
|
+
/** Returns the last event ID string, for server-sent events. */
|
|
2287
2092
|
readonly lastEventId: string;
|
|
2288
|
-
/**
|
|
2289
|
-
* Returns the origin of the message, for server-sent events and cross-document messaging.
|
|
2290
|
-
*/
|
|
2093
|
+
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
|
|
2291
2094
|
readonly origin: string;
|
|
2292
|
-
/**
|
|
2293
|
-
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
|
|
2294
|
-
*/
|
|
2095
|
+
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
|
|
2295
2096
|
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
|
-
*/
|
|
2097
|
+
/** 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
2098
|
readonly source: MessageEventSource | null;
|
|
2300
2099
|
/** @deprecated */
|
|
2301
2100
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
|
|
@@ -2315,9 +2114,7 @@ interface MessagePortEventMap {
|
|
|
2315
2114
|
interface MessagePort extends EventTarget {
|
|
2316
2115
|
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
2317
2116
|
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
|
|
2318
|
-
/**
|
|
2319
|
-
* Disconnects the port, so that it is no longer active.
|
|
2320
|
-
*/
|
|
2117
|
+
/** Disconnects the port, so that it is no longer active. */
|
|
2321
2118
|
close(): void;
|
|
2322
2119
|
/**
|
|
2323
2120
|
* 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 +2122,8 @@ interface MessagePort extends EventTarget {
|
|
|
2325
2122
|
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
|
|
2326
2123
|
*/
|
|
2327
2124
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
2328
|
-
postMessage(message: any, options?:
|
|
2329
|
-
/**
|
|
2330
|
-
* Begins dispatching messages received on the port.
|
|
2331
|
-
*/
|
|
2125
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
2126
|
+
/** Begins dispatching messages received on the port. */
|
|
2332
2127
|
start(): void;
|
|
2333
2128
|
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2334
2129
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2372,6 +2167,7 @@ interface NavigatorOnLine {
|
|
|
2372
2167
|
readonly onLine: boolean;
|
|
2373
2168
|
}
|
|
2374
2169
|
|
|
2170
|
+
/** Available only in secure contexts. */
|
|
2375
2171
|
interface NavigatorStorage {
|
|
2376
2172
|
readonly storage: StorageManager;
|
|
2377
2173
|
}
|
|
@@ -2480,9 +2276,7 @@ interface OffscreenCanvas extends EventTarget {
|
|
|
2480
2276
|
|
|
2481
2277
|
/** 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
2278
|
interface Path2D extends CanvasPath {
|
|
2483
|
-
/**
|
|
2484
|
-
* Adds to the path the path given by the argument.
|
|
2485
|
-
*/
|
|
2279
|
+
/** Adds to the path the path given by the argument. */
|
|
2486
2280
|
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
|
|
2487
2281
|
}
|
|
2488
2282
|
|
|
@@ -2668,7 +2462,10 @@ declare var PromiseRejectionEvent: {
|
|
|
2668
2462
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
2669
2463
|
};
|
|
2670
2464
|
|
|
2671
|
-
/**
|
|
2465
|
+
/**
|
|
2466
|
+
* This Push API interface 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.
|
|
2467
|
+
* Available only in secure contexts.
|
|
2468
|
+
*/
|
|
2672
2469
|
interface PushEvent extends ExtendableEvent {
|
|
2673
2470
|
readonly data: PushMessageData | null;
|
|
2674
2471
|
}
|
|
@@ -2678,7 +2475,10 @@ declare var PushEvent: {
|
|
|
2678
2475
|
new(type: string, eventInitDict?: PushEventInit): PushEvent;
|
|
2679
2476
|
};
|
|
2680
2477
|
|
|
2681
|
-
/**
|
|
2478
|
+
/**
|
|
2479
|
+
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
|
|
2480
|
+
* Available only in secure contexts.
|
|
2481
|
+
*/
|
|
2682
2482
|
interface PushManager {
|
|
2683
2483
|
getSubscription(): Promise<PushSubscription | null>;
|
|
2684
2484
|
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
|
@@ -2691,7 +2491,10 @@ declare var PushManager: {
|
|
|
2691
2491
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
2692
2492
|
};
|
|
2693
2493
|
|
|
2694
|
-
/**
|
|
2494
|
+
/**
|
|
2495
|
+
* This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
|
|
2496
|
+
* Available only in secure contexts.
|
|
2497
|
+
*/
|
|
2695
2498
|
interface PushMessageData {
|
|
2696
2499
|
arrayBuffer(): ArrayBuffer;
|
|
2697
2500
|
blob(): Blob;
|
|
@@ -2704,7 +2507,10 @@ declare var PushMessageData: {
|
|
|
2704
2507
|
new(): PushMessageData;
|
|
2705
2508
|
};
|
|
2706
2509
|
|
|
2707
|
-
/**
|
|
2510
|
+
/**
|
|
2511
|
+
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
|
|
2512
|
+
* Available only in secure contexts.
|
|
2513
|
+
*/
|
|
2708
2514
|
interface PushSubscription {
|
|
2709
2515
|
readonly endpoint: string;
|
|
2710
2516
|
readonly options: PushSubscriptionOptions;
|
|
@@ -2718,6 +2524,7 @@ declare var PushSubscription: {
|
|
|
2718
2524
|
new(): PushSubscription;
|
|
2719
2525
|
};
|
|
2720
2526
|
|
|
2527
|
+
/** Available only in secure contexts. */
|
|
2721
2528
|
interface PushSubscriptionOptions {
|
|
2722
2529
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
2723
2530
|
}
|
|
@@ -2735,7 +2542,6 @@ interface ReadableStream<R = any> {
|
|
|
2735
2542
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
2736
2543
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
2737
2544
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
2738
|
-
forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
|
|
2739
2545
|
}
|
|
2740
2546
|
|
|
2741
2547
|
declare var ReadableStream: {
|
|
@@ -2772,57 +2578,31 @@ interface ReadableStreamGenericReader {
|
|
|
2772
2578
|
|
|
2773
2579
|
/** This Fetch API interface represents a resource request. */
|
|
2774
2580
|
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
|
-
*/
|
|
2581
|
+
/** 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
2582
|
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
|
-
*/
|
|
2583
|
+
/** 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
2584
|
readonly credentials: RequestCredentials;
|
|
2783
|
-
/**
|
|
2784
|
-
* Returns the kind of resource requested by request, e.g., "document" or "script".
|
|
2785
|
-
*/
|
|
2585
|
+
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
|
|
2786
2586
|
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
|
-
*/
|
|
2587
|
+
/** 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
2588
|
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
|
-
*/
|
|
2589
|
+
/** 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
2590
|
readonly integrity: string;
|
|
2795
|
-
/**
|
|
2796
|
-
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
|
|
2797
|
-
*/
|
|
2591
|
+
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
|
|
2798
2592
|
readonly keepalive: boolean;
|
|
2799
|
-
/**
|
|
2800
|
-
* Returns request's HTTP method, which is "GET" by default.
|
|
2801
|
-
*/
|
|
2593
|
+
/** Returns request's HTTP method, which is "GET" by default. */
|
|
2802
2594
|
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
|
-
*/
|
|
2595
|
+
/** 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
2596
|
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
|
-
*/
|
|
2597
|
+
/** 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
2598
|
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
|
-
*/
|
|
2599
|
+
/** 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
2600
|
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
|
-
*/
|
|
2601
|
+
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
|
|
2818
2602
|
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
|
-
*/
|
|
2603
|
+
/** 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
2604
|
readonly signal: AbortSignal;
|
|
2823
|
-
/**
|
|
2824
|
-
* Returns the URL of request as a string.
|
|
2825
|
-
*/
|
|
2605
|
+
/** Returns the URL of request as a string. */
|
|
2826
2606
|
readonly url: string;
|
|
2827
2607
|
clone(): Request;
|
|
2828
2608
|
}
|
|
@@ -2876,13 +2656,16 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
|
2876
2656
|
"statechange": Event;
|
|
2877
2657
|
}
|
|
2878
2658
|
|
|
2879
|
-
/**
|
|
2659
|
+
/**
|
|
2660
|
+
* This ServiceWorker API interface 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.
|
|
2661
|
+
* Available only in secure contexts.
|
|
2662
|
+
*/
|
|
2880
2663
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
2881
2664
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
2882
2665
|
readonly scriptURL: string;
|
|
2883
2666
|
readonly state: ServiceWorkerState;
|
|
2884
2667
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
2885
|
-
postMessage(message: any, options?:
|
|
2668
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
2886
2669
|
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2887
2670
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2888
2671
|
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2900,7 +2683,10 @@ interface ServiceWorkerContainerEventMap {
|
|
|
2900
2683
|
"messageerror": MessageEvent;
|
|
2901
2684
|
}
|
|
2902
2685
|
|
|
2903
|
-
/**
|
|
2686
|
+
/**
|
|
2687
|
+
* The ServiceWorkerContainer interface of the ServiceWorker API provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
|
|
2688
|
+
* Available only in secure contexts.
|
|
2689
|
+
*/
|
|
2904
2690
|
interface ServiceWorkerContainer extends EventTarget {
|
|
2905
2691
|
readonly controller: ServiceWorker | null;
|
|
2906
2692
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
@@ -2961,7 +2747,10 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
2961
2747
|
"updatefound": Event;
|
|
2962
2748
|
}
|
|
2963
2749
|
|
|
2964
|
-
/**
|
|
2750
|
+
/**
|
|
2751
|
+
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
|
|
2752
|
+
* Available only in secure contexts.
|
|
2753
|
+
*/
|
|
2965
2754
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
2966
2755
|
readonly active: ServiceWorker | null;
|
|
2967
2756
|
readonly installing: ServiceWorker | null;
|
|
@@ -2990,14 +2779,10 @@ interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2990
2779
|
}
|
|
2991
2780
|
|
|
2992
2781
|
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
|
-
*/
|
|
2782
|
+
/** 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
2783
|
readonly name: string;
|
|
2997
2784
|
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
2998
|
-
/**
|
|
2999
|
-
* Aborts sharedWorkerGlobal.
|
|
3000
|
-
*/
|
|
2785
|
+
/** Aborts sharedWorkerGlobal. */
|
|
3001
2786
|
close(): void;
|
|
3002
2787
|
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3003
2788
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -3010,6 +2795,7 @@ declare var SharedWorkerGlobalScope: {
|
|
|
3010
2795
|
new(): SharedWorkerGlobalScope;
|
|
3011
2796
|
};
|
|
3012
2797
|
|
|
2798
|
+
/** Available only in secure contexts. */
|
|
3013
2799
|
interface StorageManager {
|
|
3014
2800
|
estimate(): Promise<StorageEstimate>;
|
|
3015
2801
|
persisted(): Promise<boolean>;
|
|
@@ -3020,7 +2806,10 @@ declare var StorageManager: {
|
|
|
3020
2806
|
new(): StorageManager;
|
|
3021
2807
|
};
|
|
3022
2808
|
|
|
3023
|
-
/**
|
|
2809
|
+
/**
|
|
2810
|
+
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
|
|
2811
|
+
* Available only in secure contexts.
|
|
2812
|
+
*/
|
|
3024
2813
|
interface SubtleCrypto {
|
|
3025
2814
|
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
3026
2815
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
@@ -3069,17 +2858,11 @@ declare var TextDecoder: {
|
|
|
3069
2858
|
};
|
|
3070
2859
|
|
|
3071
2860
|
interface TextDecoderCommon {
|
|
3072
|
-
/**
|
|
3073
|
-
* Returns encoding's name, lowercased.
|
|
3074
|
-
*/
|
|
2861
|
+
/** Returns encoding's name, lowercased. */
|
|
3075
2862
|
readonly encoding: string;
|
|
3076
|
-
/**
|
|
3077
|
-
* Returns true if error mode is "fatal", otherwise false.
|
|
3078
|
-
*/
|
|
2863
|
+
/** Returns true if error mode is "fatal", otherwise false. */
|
|
3079
2864
|
readonly fatal: boolean;
|
|
3080
|
-
/**
|
|
3081
|
-
* Returns the value of ignore BOM.
|
|
3082
|
-
*/
|
|
2865
|
+
/** Returns the value of ignore BOM. */
|
|
3083
2866
|
readonly ignoreBOM: boolean;
|
|
3084
2867
|
}
|
|
3085
2868
|
|
|
@@ -3095,13 +2878,9 @@ declare var TextDecoderStream: {
|
|
|
3095
2878
|
|
|
3096
2879
|
/** 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
2880
|
interface TextEncoder extends TextEncoderCommon {
|
|
3098
|
-
/**
|
|
3099
|
-
* Returns the result of running UTF-8's encoder.
|
|
3100
|
-
*/
|
|
2881
|
+
/** Returns the result of running UTF-8's encoder. */
|
|
3101
2882
|
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
|
-
*/
|
|
2883
|
+
/** 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
2884
|
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
|
|
3106
2885
|
}
|
|
3107
2886
|
|
|
@@ -3111,9 +2890,7 @@ declare var TextEncoder: {
|
|
|
3111
2890
|
};
|
|
3112
2891
|
|
|
3113
2892
|
interface TextEncoderCommon {
|
|
3114
|
-
/**
|
|
3115
|
-
* Returns "utf-8".
|
|
3116
|
-
*/
|
|
2893
|
+
/** Returns "utf-8". */
|
|
3117
2894
|
readonly encoding: string;
|
|
3118
2895
|
}
|
|
3119
2896
|
|
|
@@ -3129,33 +2906,19 @@ declare var TextEncoderStream: {
|
|
|
3129
2906
|
|
|
3130
2907
|
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
|
|
3131
2908
|
interface TextMetrics {
|
|
3132
|
-
/**
|
|
3133
|
-
* Returns the measurement described below.
|
|
3134
|
-
*/
|
|
2909
|
+
/** Returns the measurement described below. */
|
|
3135
2910
|
readonly actualBoundingBoxAscent: number;
|
|
3136
|
-
/**
|
|
3137
|
-
* Returns the measurement described below.
|
|
3138
|
-
*/
|
|
2911
|
+
/** Returns the measurement described below. */
|
|
3139
2912
|
readonly actualBoundingBoxDescent: number;
|
|
3140
|
-
/**
|
|
3141
|
-
* Returns the measurement described below.
|
|
3142
|
-
*/
|
|
2913
|
+
/** Returns the measurement described below. */
|
|
3143
2914
|
readonly actualBoundingBoxLeft: number;
|
|
3144
|
-
/**
|
|
3145
|
-
* Returns the measurement described below.
|
|
3146
|
-
*/
|
|
2915
|
+
/** Returns the measurement described below. */
|
|
3147
2916
|
readonly actualBoundingBoxRight: number;
|
|
3148
|
-
/**
|
|
3149
|
-
* Returns the measurement described below.
|
|
3150
|
-
*/
|
|
2917
|
+
/** Returns the measurement described below. */
|
|
3151
2918
|
readonly fontBoundingBoxAscent: number;
|
|
3152
|
-
/**
|
|
3153
|
-
* Returns the measurement described below.
|
|
3154
|
-
*/
|
|
2919
|
+
/** Returns the measurement described below. */
|
|
3155
2920
|
readonly fontBoundingBoxDescent: number;
|
|
3156
|
-
/**
|
|
3157
|
-
* Returns the measurement described below.
|
|
3158
|
-
*/
|
|
2921
|
+
/** Returns the measurement described below. */
|
|
3159
2922
|
readonly width: number;
|
|
3160
2923
|
}
|
|
3161
2924
|
|
|
@@ -3207,39 +2970,25 @@ interface URL {
|
|
|
3207
2970
|
declare var URL: {
|
|
3208
2971
|
prototype: URL;
|
|
3209
2972
|
new(url: string | URL, base?: string | URL): URL;
|
|
3210
|
-
createObjectURL(
|
|
2973
|
+
createObjectURL(obj: Blob): string;
|
|
3211
2974
|
revokeObjectURL(url: string): void;
|
|
3212
2975
|
};
|
|
3213
2976
|
|
|
3214
2977
|
interface URLSearchParams {
|
|
3215
|
-
/**
|
|
3216
|
-
* Appends a specified key/value pair as a new search parameter.
|
|
3217
|
-
*/
|
|
2978
|
+
/** Appends a specified key/value pair as a new search parameter. */
|
|
3218
2979
|
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
|
-
*/
|
|
2980
|
+
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
|
|
3222
2981
|
delete(name: string): void;
|
|
3223
|
-
/**
|
|
3224
|
-
* Returns the first value associated to the given search parameter.
|
|
3225
|
-
*/
|
|
2982
|
+
/** Returns the first value associated to the given search parameter. */
|
|
3226
2983
|
get(name: string): string | null;
|
|
3227
|
-
/**
|
|
3228
|
-
* Returns all the values association with a given search parameter.
|
|
3229
|
-
*/
|
|
2984
|
+
/** Returns all the values association with a given search parameter. */
|
|
3230
2985
|
getAll(name: string): string[];
|
|
3231
|
-
/**
|
|
3232
|
-
* Returns a Boolean indicating if such a search parameter exists.
|
|
3233
|
-
*/
|
|
2986
|
+
/** Returns a Boolean indicating if such a search parameter exists. */
|
|
3234
2987
|
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
|
-
*/
|
|
2988
|
+
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
|
|
3238
2989
|
set(name: string, value: string): void;
|
|
3239
2990
|
sort(): void;
|
|
3240
|
-
/**
|
|
3241
|
-
* Returns a string containing a query string suitable for use in a URL. Does not include the question mark.
|
|
3242
|
-
*/
|
|
2991
|
+
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
|
|
3243
2992
|
toString(): string;
|
|
3244
2993
|
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
|
|
3245
2994
|
}
|
|
@@ -5288,33 +5037,21 @@ interface WebSocket extends EventTarget {
|
|
|
5288
5037
|
* 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
5038
|
*/
|
|
5290
5039
|
readonly bufferedAmount: number;
|
|
5291
|
-
/**
|
|
5292
|
-
* Returns the extensions selected by the server, if any.
|
|
5293
|
-
*/
|
|
5040
|
+
/** Returns the extensions selected by the server, if any. */
|
|
5294
5041
|
readonly extensions: string;
|
|
5295
5042
|
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
|
|
5296
5043
|
onerror: ((this: WebSocket, ev: Event) => any) | null;
|
|
5297
5044
|
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
|
|
5298
5045
|
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
|
-
*/
|
|
5046
|
+
/** 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
5047
|
readonly protocol: string;
|
|
5303
|
-
/**
|
|
5304
|
-
* Returns the state of the WebSocket object's connection. It can have the values described below.
|
|
5305
|
-
*/
|
|
5048
|
+
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
|
|
5306
5049
|
readonly readyState: number;
|
|
5307
|
-
/**
|
|
5308
|
-
* Returns the URL that was used to establish the WebSocket connection.
|
|
5309
|
-
*/
|
|
5050
|
+
/** Returns the URL that was used to establish the WebSocket connection. */
|
|
5310
5051
|
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
|
-
*/
|
|
5052
|
+
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
|
|
5314
5053
|
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
|
-
*/
|
|
5054
|
+
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
|
|
5318
5055
|
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
5319
5056
|
readonly CLOSED: number;
|
|
5320
5057
|
readonly CLOSING: number;
|
|
@@ -5349,6 +5086,7 @@ declare var WindowClient: {
|
|
|
5349
5086
|
};
|
|
5350
5087
|
|
|
5351
5088
|
interface WindowOrWorkerGlobalScope {
|
|
5089
|
+
/** Available only in secure contexts. */
|
|
5352
5090
|
readonly caches: CacheStorage;
|
|
5353
5091
|
readonly crossOriginIsolated: boolean;
|
|
5354
5092
|
readonly crypto: Crypto;
|
|
@@ -5377,14 +5115,10 @@ interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
|
5377
5115
|
interface Worker extends EventTarget, AbstractWorker {
|
|
5378
5116
|
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
|
|
5379
5117
|
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
|
-
*/
|
|
5118
|
+
/** 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
5119
|
postMessage(message: any, transfer: Transferable[]): void;
|
|
5384
|
-
postMessage(message: any, options?:
|
|
5385
|
-
/**
|
|
5386
|
-
* Aborts worker's associated global environment.
|
|
5387
|
-
*/
|
|
5120
|
+
postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
5121
|
+
/** Aborts worker's associated global environment. */
|
|
5388
5122
|
terminate(): void;
|
|
5389
5123
|
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5390
5124
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5408,13 +5142,9 @@ interface WorkerGlobalScopeEventMap {
|
|
|
5408
5142
|
|
|
5409
5143
|
/** 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
5144
|
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
|
|
5411
|
-
/**
|
|
5412
|
-
* Returns workerGlobal's WorkerLocation object.
|
|
5413
|
-
*/
|
|
5145
|
+
/** Returns workerGlobal's WorkerLocation object. */
|
|
5414
5146
|
readonly location: WorkerLocation;
|
|
5415
|
-
/**
|
|
5416
|
-
* Returns workerGlobal's WorkerNavigator object.
|
|
5417
|
-
*/
|
|
5147
|
+
/** Returns workerGlobal's WorkerNavigator object. */
|
|
5418
5148
|
readonly navigator: WorkerNavigator;
|
|
5419
5149
|
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
5420
5150
|
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
@@ -5422,13 +5152,9 @@ interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerG
|
|
|
5422
5152
|
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
|
|
5423
5153
|
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5424
5154
|
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5425
|
-
/**
|
|
5426
|
-
* Returns workerGlobal.
|
|
5427
|
-
*/
|
|
5155
|
+
/** Returns workerGlobal. */
|
|
5428
5156
|
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
|
-
*/
|
|
5157
|
+
/** 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
5158
|
importScripts(...urls: (string | URL)[]): void;
|
|
5433
5159
|
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5434
5160
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5516,13 +5242,9 @@ interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
|
|
|
5516
5242
|
/** 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
5243
|
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
5518
5244
|
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
|
|
5519
|
-
/**
|
|
5520
|
-
* Returns client's state.
|
|
5521
|
-
*/
|
|
5245
|
+
/** Returns client's state. */
|
|
5522
5246
|
readonly readyState: number;
|
|
5523
|
-
/**
|
|
5524
|
-
* Returns the response body.
|
|
5525
|
-
*/
|
|
5247
|
+
/** Returns the response body. */
|
|
5526
5248
|
readonly response: any;
|
|
5527
5249
|
/**
|
|
5528
5250
|
* Returns response as text.
|
|
@@ -5551,9 +5273,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
5551
5273
|
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
|
|
5552
5274
|
*/
|
|
5553
5275
|
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
|
-
*/
|
|
5276
|
+
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
|
|
5557
5277
|
readonly upload: XMLHttpRequestUpload;
|
|
5558
5278
|
/**
|
|
5559
5279
|
* 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 +5281,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
|
|
|
5561
5281
|
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
|
|
5562
5282
|
*/
|
|
5563
5283
|
withCredentials: boolean;
|
|
5564
|
-
/**
|
|
5565
|
-
* Cancels any network activity.
|
|
5566
|
-
*/
|
|
5284
|
+
/** Cancels any network activity. */
|
|
5567
5285
|
abort(): void;
|
|
5568
5286
|
getAllResponseHeaders(): string;
|
|
5569
5287
|
getResponseHeader(name: string): string | null;
|
|
@@ -5691,7 +5409,8 @@ declare namespace WebAssembly {
|
|
|
5691
5409
|
|
|
5692
5410
|
var CompileError: {
|
|
5693
5411
|
prototype: CompileError;
|
|
5694
|
-
new(): CompileError;
|
|
5412
|
+
new(message?: string): CompileError;
|
|
5413
|
+
(message?: string): CompileError;
|
|
5695
5414
|
};
|
|
5696
5415
|
|
|
5697
5416
|
interface Global {
|
|
@@ -5718,7 +5437,8 @@ declare namespace WebAssembly {
|
|
|
5718
5437
|
|
|
5719
5438
|
var LinkError: {
|
|
5720
5439
|
prototype: LinkError;
|
|
5721
|
-
new(): LinkError;
|
|
5440
|
+
new(message?: string): LinkError;
|
|
5441
|
+
(message?: string): LinkError;
|
|
5722
5442
|
};
|
|
5723
5443
|
|
|
5724
5444
|
interface Memory {
|
|
@@ -5747,7 +5467,8 @@ declare namespace WebAssembly {
|
|
|
5747
5467
|
|
|
5748
5468
|
var RuntimeError: {
|
|
5749
5469
|
prototype: RuntimeError;
|
|
5750
|
-
new(): RuntimeError;
|
|
5470
|
+
new(message?: string): RuntimeError;
|
|
5471
|
+
(message?: string): RuntimeError;
|
|
5751
5472
|
};
|
|
5752
5473
|
|
|
5753
5474
|
interface Table {
|
|
@@ -5824,7 +5545,7 @@ interface PerformanceObserverCallback {
|
|
|
5824
5545
|
}
|
|
5825
5546
|
|
|
5826
5547
|
interface QueuingStrategySize<T = any> {
|
|
5827
|
-
(chunk
|
|
5548
|
+
(chunk: T): number;
|
|
5828
5549
|
}
|
|
5829
5550
|
|
|
5830
5551
|
interface TransformerFlushCallback<O> {
|
|
@@ -5871,32 +5592,20 @@ interface VoidFunction {
|
|
|
5871
5592
|
(): void;
|
|
5872
5593
|
}
|
|
5873
5594
|
|
|
5874
|
-
/**
|
|
5875
|
-
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
|
|
5876
|
-
*/
|
|
5595
|
+
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
|
|
5877
5596
|
declare var name: string;
|
|
5878
5597
|
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
5879
5598
|
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
|
|
5880
|
-
/**
|
|
5881
|
-
* Aborts dedicatedWorkerGlobal.
|
|
5882
|
-
*/
|
|
5599
|
+
/** Aborts dedicatedWorkerGlobal. */
|
|
5883
5600
|
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
|
-
*/
|
|
5601
|
+
/** 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
5602
|
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
|
-
*/
|
|
5603
|
+
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
|
|
5604
|
+
/** 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
5605
|
declare function dispatchEvent(event: Event): boolean;
|
|
5893
|
-
/**
|
|
5894
|
-
* Returns workerGlobal's WorkerLocation object.
|
|
5895
|
-
*/
|
|
5606
|
+
/** Returns workerGlobal's WorkerLocation object. */
|
|
5896
5607
|
declare var location: WorkerLocation;
|
|
5897
|
-
/**
|
|
5898
|
-
* Returns workerGlobal's WorkerNavigator object.
|
|
5899
|
-
*/
|
|
5608
|
+
/** Returns workerGlobal's WorkerNavigator object. */
|
|
5900
5609
|
declare var navigator: WorkerNavigator;
|
|
5901
5610
|
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
|
|
5902
5611
|
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
@@ -5904,19 +5613,14 @@ declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) |
|
|
|
5904
5613
|
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
|
|
5905
5614
|
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5906
5615
|
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
|
|
5907
|
-
/**
|
|
5908
|
-
* Returns workerGlobal.
|
|
5909
|
-
*/
|
|
5616
|
+
/** Returns workerGlobal. */
|
|
5910
5617
|
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
|
-
*/
|
|
5618
|
+
/** 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
5619
|
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
|
-
*/
|
|
5620
|
+
/** 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
5621
|
declare function dispatchEvent(event: Event): boolean;
|
|
5919
5622
|
declare var fonts: FontFaceSet;
|
|
5623
|
+
/** Available only in secure contexts. */
|
|
5920
5624
|
declare var caches: CacheStorage;
|
|
5921
5625
|
declare var crossOriginIsolated: boolean;
|
|
5922
5626
|
declare var crypto: Crypto;
|
|
@@ -6005,7 +5709,7 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
|
6005
5709
|
type MediaEncodingType = "record" | "webrtc";
|
|
6006
5710
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
6007
5711
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
6008
|
-
type PermissionName = "
|
|
5712
|
+
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
6009
5713
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
6010
5714
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
6011
5715
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|