typescript 4.5.0-dev.20211028 → 4.5.0-dev.20211101
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 +1 -0
- package/lib/de/diagnosticMessages.generated.json +1 -0
- package/lib/es/diagnosticMessages.generated.json +1 -0
- package/lib/fr/diagnosticMessages.generated.json +1 -0
- package/lib/it/diagnosticMessages.generated.json +1 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/ko/diagnosticMessages.generated.json +1 -0
- package/lib/lib.dom.d.ts +186 -92
- package/lib/lib.dom.iterable.d.ts +1 -7
- package/lib/lib.webworker.d.ts +60 -19
- package/lib/lib.webworker.iterable.d.ts +0 -7
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/protocol.d.ts +7 -0
- package/lib/pt-br/diagnosticMessages.generated.json +1 -0
- package/lib/ru/diagnosticMessages.generated.json +1 -0
- package/lib/tr/diagnosticMessages.generated.json +1 -0
- package/lib/tsc.js +200 -52
- package/lib/tsserver.js +528 -117
- package/lib/tsserverlibrary.d.ts +8 -0
- package/lib/tsserverlibrary.js +528 -117
- package/lib/typescript.d.ts +1 -0
- package/lib/typescript.js +524 -117
- package/lib/typescriptServices.d.ts +1 -0
- package/lib/typescriptServices.js +524 -117
- package/lib/typingsInstaller.js +256 -54
- package/lib/zh-cn/diagnosticMessages.generated.json +1 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -0
- package/package.json +1 -1
package/lib/lib.dom.d.ts
CHANGED
|
@@ -73,8 +73,8 @@ interface AnimationEventInit extends EventInit {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
interface AnimationPlaybackEventInit extends EventInit {
|
|
76
|
-
currentTime?:
|
|
77
|
-
timelineTime?:
|
|
76
|
+
currentTime?: CSSNumberish | null;
|
|
77
|
+
timelineTime?: CSSNumberish | null;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
interface AssignedNodesOptions {
|
|
@@ -828,6 +828,7 @@ interface MediaTrackCapabilities {
|
|
|
828
828
|
|
|
829
829
|
interface MediaTrackConstraintSet {
|
|
830
830
|
aspectRatio?: ConstrainDouble;
|
|
831
|
+
autoGainControl?: ConstrainBoolean;
|
|
831
832
|
channelCount?: ConstrainULong;
|
|
832
833
|
deviceId?: ConstrainDOMString;
|
|
833
834
|
echoCancellation?: ConstrainBoolean;
|
|
@@ -836,6 +837,7 @@ interface MediaTrackConstraintSet {
|
|
|
836
837
|
groupId?: ConstrainDOMString;
|
|
837
838
|
height?: ConstrainULong;
|
|
838
839
|
latency?: ConstrainDouble;
|
|
840
|
+
noiseSuppression?: ConstrainBoolean;
|
|
839
841
|
sampleRate?: ConstrainULong;
|
|
840
842
|
sampleSize?: ConstrainULong;
|
|
841
843
|
suppressLocalAudioPlayback?: ConstrainBoolean;
|
|
@@ -848,12 +850,14 @@ interface MediaTrackConstraints extends MediaTrackConstraintSet {
|
|
|
848
850
|
|
|
849
851
|
interface MediaTrackSettings {
|
|
850
852
|
aspectRatio?: number;
|
|
853
|
+
autoGainControl?: boolean;
|
|
851
854
|
deviceId?: string;
|
|
852
855
|
echoCancellation?: boolean;
|
|
853
856
|
facingMode?: string;
|
|
854
857
|
frameRate?: number;
|
|
855
858
|
groupId?: string;
|
|
856
859
|
height?: number;
|
|
860
|
+
noiseSuppression?: boolean;
|
|
857
861
|
restrictOwnAudio?: boolean;
|
|
858
862
|
sampleRate?: number;
|
|
859
863
|
sampleSize?: number;
|
|
@@ -862,12 +866,14 @@ interface MediaTrackSettings {
|
|
|
862
866
|
|
|
863
867
|
interface MediaTrackSupportedConstraints {
|
|
864
868
|
aspectRatio?: boolean;
|
|
869
|
+
autoGainControl?: boolean;
|
|
865
870
|
deviceId?: boolean;
|
|
866
871
|
echoCancellation?: boolean;
|
|
867
872
|
facingMode?: boolean;
|
|
868
873
|
frameRate?: boolean;
|
|
869
874
|
groupId?: boolean;
|
|
870
875
|
height?: boolean;
|
|
876
|
+
noiseSuppression?: boolean;
|
|
871
877
|
sampleRate?: boolean;
|
|
872
878
|
sampleSize?: boolean;
|
|
873
879
|
suppressLocalAudioPlayback?: boolean;
|
|
@@ -1483,7 +1489,7 @@ interface RequestInit {
|
|
|
1483
1489
|
/** An AbortSignal to set request's signal. */
|
|
1484
1490
|
signal?: AbortSignal | null;
|
|
1485
1491
|
/** Can only be null. Used to disassociate request from any Window. */
|
|
1486
|
-
window?:
|
|
1492
|
+
window?: null;
|
|
1487
1493
|
}
|
|
1488
1494
|
|
|
1489
1495
|
interface ResizeObserverOptions {
|
|
@@ -1887,7 +1893,7 @@ interface AbortSignal extends EventTarget {
|
|
|
1887
1893
|
declare var AbortSignal: {
|
|
1888
1894
|
prototype: AbortSignal;
|
|
1889
1895
|
new(): AbortSignal;
|
|
1890
|
-
// abort(): AbortSignal;
|
|
1896
|
+
// abort(): AbortSignal; - To be re-added in the future
|
|
1891
1897
|
};
|
|
1892
1898
|
|
|
1893
1899
|
interface AbstractRange {
|
|
@@ -1950,7 +1956,7 @@ interface AnimationEventMap {
|
|
|
1950
1956
|
}
|
|
1951
1957
|
|
|
1952
1958
|
interface Animation extends EventTarget {
|
|
1953
|
-
currentTime:
|
|
1959
|
+
currentTime: CSSNumberish | null;
|
|
1954
1960
|
effect: AnimationEffect | null;
|
|
1955
1961
|
readonly finished: Promise<Animation>;
|
|
1956
1962
|
id: string;
|
|
@@ -1962,7 +1968,7 @@ interface Animation extends EventTarget {
|
|
|
1962
1968
|
playbackRate: number;
|
|
1963
1969
|
readonly ready: Promise<Animation>;
|
|
1964
1970
|
readonly replaceState: AnimationReplaceState;
|
|
1965
|
-
startTime:
|
|
1971
|
+
startTime: CSSNumberish | null;
|
|
1966
1972
|
timeline: AnimationTimeline | null;
|
|
1967
1973
|
cancel(): void;
|
|
1968
1974
|
commitStyles(): void;
|
|
@@ -2012,8 +2018,8 @@ interface AnimationFrameProvider {
|
|
|
2012
2018
|
}
|
|
2013
2019
|
|
|
2014
2020
|
interface AnimationPlaybackEvent extends Event {
|
|
2015
|
-
readonly currentTime:
|
|
2016
|
-
readonly timelineTime:
|
|
2021
|
+
readonly currentTime: CSSNumberish | null;
|
|
2022
|
+
readonly timelineTime: CSSNumberish | null;
|
|
2017
2023
|
}
|
|
2018
2024
|
|
|
2019
2025
|
declare var AnimationPlaybackEvent: {
|
|
@@ -2228,6 +2234,7 @@ declare var AudioScheduledSourceNode: {
|
|
|
2228
2234
|
new(): AudioScheduledSourceNode;
|
|
2229
2235
|
};
|
|
2230
2236
|
|
|
2237
|
+
/** Available only in secure contexts. */
|
|
2231
2238
|
interface AudioWorklet extends Worklet {
|
|
2232
2239
|
}
|
|
2233
2240
|
|
|
@@ -2240,6 +2247,7 @@ interface AudioWorkletNodeEventMap {
|
|
|
2240
2247
|
"processorerror": Event;
|
|
2241
2248
|
}
|
|
2242
2249
|
|
|
2250
|
+
/** Available only in secure contexts. */
|
|
2243
2251
|
interface AudioWorkletNode extends AudioNode {
|
|
2244
2252
|
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
|
|
2245
2253
|
readonly parameters: AudioParamMap;
|
|
@@ -2255,6 +2263,7 @@ declare var AudioWorkletNode: {
|
|
|
2255
2263
|
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
|
|
2256
2264
|
};
|
|
2257
2265
|
|
|
2266
|
+
/** Available only in secure contexts. */
|
|
2258
2267
|
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
|
|
2259
2268
|
readonly authenticatorData: ArrayBuffer;
|
|
2260
2269
|
readonly signature: ArrayBuffer;
|
|
@@ -2266,6 +2275,7 @@ declare var AuthenticatorAssertionResponse: {
|
|
|
2266
2275
|
new(): AuthenticatorAssertionResponse;
|
|
2267
2276
|
};
|
|
2268
2277
|
|
|
2278
|
+
/** Available only in secure contexts. */
|
|
2269
2279
|
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
|
|
2270
2280
|
readonly attestationObject: ArrayBuffer;
|
|
2271
2281
|
}
|
|
@@ -2275,6 +2285,7 @@ declare var AuthenticatorAttestationResponse: {
|
|
|
2275
2285
|
new(): AuthenticatorAttestationResponse;
|
|
2276
2286
|
};
|
|
2277
2287
|
|
|
2288
|
+
/** Available only in secure contexts. */
|
|
2278
2289
|
interface AuthenticatorResponse {
|
|
2279
2290
|
readonly clientDataJSON: ArrayBuffer;
|
|
2280
2291
|
}
|
|
@@ -2298,6 +2309,7 @@ interface BaseAudioContextEventMap {
|
|
|
2298
2309
|
}
|
|
2299
2310
|
|
|
2300
2311
|
interface BaseAudioContext extends EventTarget {
|
|
2312
|
+
/** Available only in secure contexts. */
|
|
2301
2313
|
readonly audioWorklet: AudioWorklet;
|
|
2302
2314
|
readonly currentTime: number;
|
|
2303
2315
|
readonly destination: AudioDestinationNode;
|
|
@@ -2620,6 +2632,7 @@ declare var CSSRuleList: {
|
|
|
2620
2632
|
|
|
2621
2633
|
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
|
|
2622
2634
|
interface CSSStyleDeclaration {
|
|
2635
|
+
accentColor: string;
|
|
2623
2636
|
alignContent: string;
|
|
2624
2637
|
alignItems: string;
|
|
2625
2638
|
alignSelf: string;
|
|
@@ -2793,11 +2806,14 @@ interface CSSStyleDeclaration {
|
|
|
2793
2806
|
gridAutoRows: string;
|
|
2794
2807
|
gridColumn: string;
|
|
2795
2808
|
gridColumnEnd: string;
|
|
2809
|
+
/** @deprecated This is a legacy alias of `columnGap`. */
|
|
2796
2810
|
gridColumnGap: string;
|
|
2797
2811
|
gridColumnStart: string;
|
|
2812
|
+
/** @deprecated This is a legacy alias of `gap`. */
|
|
2798
2813
|
gridGap: string;
|
|
2799
2814
|
gridRow: string;
|
|
2800
2815
|
gridRowEnd: string;
|
|
2816
|
+
/** @deprecated This is a legacy alias of `rowGap`. */
|
|
2801
2817
|
gridRowGap: string;
|
|
2802
2818
|
gridRowStart: string;
|
|
2803
2819
|
gridTemplate: string;
|
|
@@ -3036,15 +3052,15 @@ interface CSSStyleDeclaration {
|
|
|
3036
3052
|
webkitBorderTopLeftRadius: string;
|
|
3037
3053
|
/** @deprecated This is a legacy alias of `borderTopRightRadius`. */
|
|
3038
3054
|
webkitBorderTopRightRadius: string;
|
|
3039
|
-
/** @deprecated */
|
|
3055
|
+
/** @deprecated This is a legacy alias of `boxAlign`. */
|
|
3040
3056
|
webkitBoxAlign: string;
|
|
3041
|
-
/** @deprecated */
|
|
3057
|
+
/** @deprecated This is a legacy alias of `boxFlex`. */
|
|
3042
3058
|
webkitBoxFlex: string;
|
|
3043
|
-
/** @deprecated */
|
|
3059
|
+
/** @deprecated This is a legacy alias of `boxOrdinalGroup`. */
|
|
3044
3060
|
webkitBoxOrdinalGroup: string;
|
|
3045
|
-
/** @deprecated */
|
|
3061
|
+
/** @deprecated This is a legacy alias of `boxOrient`. */
|
|
3046
3062
|
webkitBoxOrient: string;
|
|
3047
|
-
/** @deprecated */
|
|
3063
|
+
/** @deprecated This is a legacy alias of `boxPack`. */
|
|
3048
3064
|
webkitBoxPack: string;
|
|
3049
3065
|
/** @deprecated This is a legacy alias of `boxShadow`. */
|
|
3050
3066
|
webkitBoxShadow: string;
|
|
@@ -3199,7 +3215,10 @@ declare var CSSTransition: {
|
|
|
3199
3215
|
new(): CSSTransition;
|
|
3200
3216
|
};
|
|
3201
3217
|
|
|
3202
|
-
/**
|
|
3218
|
+
/**
|
|
3219
|
+
* 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.
|
|
3220
|
+
* Available only in secure contexts.
|
|
3221
|
+
*/
|
|
3203
3222
|
interface Cache {
|
|
3204
3223
|
add(request: RequestInfo): Promise<void>;
|
|
3205
3224
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
@@ -3215,7 +3234,10 @@ declare var Cache: {
|
|
|
3215
3234
|
new(): Cache;
|
|
3216
3235
|
};
|
|
3217
3236
|
|
|
3218
|
-
/**
|
|
3237
|
+
/**
|
|
3238
|
+
* The storage for Cache objects.
|
|
3239
|
+
* Available only in secure contexts.
|
|
3240
|
+
*/
|
|
3219
3241
|
interface CacheStorage {
|
|
3220
3242
|
delete(cacheName: string): Promise<boolean>;
|
|
3221
3243
|
has(cacheName: string): Promise<boolean>;
|
|
@@ -3447,6 +3469,7 @@ interface ChildNode extends Node {
|
|
|
3447
3469
|
interface ClientRect extends DOMRect {
|
|
3448
3470
|
}
|
|
3449
3471
|
|
|
3472
|
+
/** Available only in secure contexts. */
|
|
3450
3473
|
interface Clipboard extends EventTarget {
|
|
3451
3474
|
read(): Promise<ClipboardItems>;
|
|
3452
3475
|
readText(): Promise<string>;
|
|
@@ -3550,6 +3573,7 @@ declare var CountQueuingStrategy: {
|
|
|
3550
3573
|
new(init: QueuingStrategyInit): CountQueuingStrategy;
|
|
3551
3574
|
};
|
|
3552
3575
|
|
|
3576
|
+
/** Available only in secure contexts. */
|
|
3553
3577
|
interface Credential {
|
|
3554
3578
|
readonly id: string;
|
|
3555
3579
|
readonly type: string;
|
|
@@ -3560,6 +3584,7 @@ declare var Credential: {
|
|
|
3560
3584
|
new(): Credential;
|
|
3561
3585
|
};
|
|
3562
3586
|
|
|
3587
|
+
/** Available only in secure contexts. */
|
|
3563
3588
|
interface CredentialsContainer {
|
|
3564
3589
|
create(options?: CredentialCreationOptions): Promise<Credential | null>;
|
|
3565
3590
|
get(options?: CredentialRequestOptions): Promise<Credential | null>;
|
|
@@ -3574,6 +3599,7 @@ declare var CredentialsContainer: {
|
|
|
3574
3599
|
|
|
3575
3600
|
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
|
|
3576
3601
|
interface Crypto {
|
|
3602
|
+
/** Available only in secure contexts. */
|
|
3577
3603
|
readonly subtle: SubtleCrypto;
|
|
3578
3604
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
3579
3605
|
}
|
|
@@ -3583,7 +3609,10 @@ declare var Crypto: {
|
|
|
3583
3609
|
new(): Crypto;
|
|
3584
3610
|
};
|
|
3585
3611
|
|
|
3586
|
-
/**
|
|
3612
|
+
/**
|
|
3613
|
+
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
|
|
3614
|
+
* Available only in secure contexts.
|
|
3615
|
+
*/
|
|
3587
3616
|
interface CryptoKey {
|
|
3588
3617
|
readonly algorithm: KeyAlgorithm;
|
|
3589
3618
|
readonly extractable: boolean;
|
|
@@ -4091,7 +4120,10 @@ declare var DelayNode: {
|
|
|
4091
4120
|
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
|
|
4092
4121
|
};
|
|
4093
4122
|
|
|
4094
|
-
/**
|
|
4123
|
+
/**
|
|
4124
|
+
* The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
|
|
4125
|
+
* Available only in secure contexts.
|
|
4126
|
+
*/
|
|
4095
4127
|
interface DeviceMotionEvent extends Event {
|
|
4096
4128
|
readonly acceleration: DeviceMotionEventAcceleration | null;
|
|
4097
4129
|
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
|
|
@@ -4104,19 +4136,24 @@ declare var DeviceMotionEvent: {
|
|
|
4104
4136
|
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
|
|
4105
4137
|
};
|
|
4106
4138
|
|
|
4139
|
+
/** Available only in secure contexts. */
|
|
4107
4140
|
interface DeviceMotionEventAcceleration {
|
|
4108
4141
|
readonly x: number | null;
|
|
4109
4142
|
readonly y: number | null;
|
|
4110
4143
|
readonly z: number | null;
|
|
4111
4144
|
}
|
|
4112
4145
|
|
|
4146
|
+
/** Available only in secure contexts. */
|
|
4113
4147
|
interface DeviceMotionEventRotationRate {
|
|
4114
4148
|
readonly alpha: number | null;
|
|
4115
4149
|
readonly beta: number | null;
|
|
4116
4150
|
readonly gamma: number | null;
|
|
4117
4151
|
}
|
|
4118
4152
|
|
|
4119
|
-
/**
|
|
4153
|
+
/**
|
|
4154
|
+
* The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
|
|
4155
|
+
* Available only in secure contexts.
|
|
4156
|
+
*/
|
|
4120
4157
|
interface DeviceOrientationEvent extends Event {
|
|
4121
4158
|
readonly absolute: boolean;
|
|
4122
4159
|
readonly alpha: number | null;
|
|
@@ -4414,13 +4451,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4414
4451
|
* @param filter A custom NodeFilter function to use.
|
|
4415
4452
|
*/
|
|
4416
4453
|
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
|
|
4417
|
-
/**
|
|
4418
|
-
* Returns the element for the specified x coordinate and the specified y coordinate.
|
|
4419
|
-
* @param x The x-offset
|
|
4420
|
-
* @param y The y-offset
|
|
4421
|
-
*/
|
|
4422
|
-
elementFromPoint(x: number, y: number): Element | null;
|
|
4423
|
-
elementsFromPoint(x: number, y: number): Element[];
|
|
4424
4454
|
/**
|
|
4425
4455
|
* Executes a command on the current document, current selection, or the given range.
|
|
4426
4456
|
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
|
|
@@ -4578,6 +4608,13 @@ interface DocumentOrShadowRoot {
|
|
|
4578
4608
|
readonly pointerLockElement: Element | null;
|
|
4579
4609
|
/** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */
|
|
4580
4610
|
readonly styleSheets: StyleSheetList;
|
|
4611
|
+
/**
|
|
4612
|
+
* Returns the element for the specified x coordinate and the specified y coordinate.
|
|
4613
|
+
* @param x The x-offset
|
|
4614
|
+
* @param y The y-offset
|
|
4615
|
+
*/
|
|
4616
|
+
elementFromPoint(x: number, y: number): Element | null;
|
|
4617
|
+
elementsFromPoint(x: number, y: number): Element[];
|
|
4581
4618
|
getAnimations(): Animation[];
|
|
4582
4619
|
}
|
|
4583
4620
|
|
|
@@ -4805,6 +4842,16 @@ interface ElementContentEditable {
|
|
|
4805
4842
|
readonly isContentEditable: boolean;
|
|
4806
4843
|
}
|
|
4807
4844
|
|
|
4845
|
+
interface ElementInternals extends ARIAMixin {
|
|
4846
|
+
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
|
|
4847
|
+
readonly shadowRoot: ShadowRoot | null;
|
|
4848
|
+
}
|
|
4849
|
+
|
|
4850
|
+
declare var ElementInternals: {
|
|
4851
|
+
prototype: ElementInternals;
|
|
4852
|
+
new(): ElementInternals;
|
|
4853
|
+
};
|
|
4854
|
+
|
|
4808
4855
|
/** Events providing information related to errors in scripts or in files. */
|
|
4809
4856
|
interface ErrorEvent extends Event {
|
|
4810
4857
|
readonly colno: number;
|
|
@@ -5044,13 +5091,10 @@ declare var FileSystemDirectoryEntry: {
|
|
|
5044
5091
|
new(): FileSystemDirectoryEntry;
|
|
5045
5092
|
};
|
|
5046
5093
|
|
|
5047
|
-
/** @deprecated */
|
|
5048
5094
|
interface FileSystemDirectoryReader {
|
|
5049
|
-
/** @deprecated */
|
|
5050
5095
|
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
|
|
5051
5096
|
}
|
|
5052
5097
|
|
|
5053
|
-
/** @deprecated */
|
|
5054
5098
|
declare var FileSystemDirectoryReader: {
|
|
5055
5099
|
prototype: FileSystemDirectoryReader;
|
|
5056
5100
|
new(): FileSystemDirectoryReader;
|
|
@@ -5187,7 +5231,10 @@ declare var GainNode: {
|
|
|
5187
5231
|
new(context: BaseAudioContext, options?: GainOptions): GainNode;
|
|
5188
5232
|
};
|
|
5189
5233
|
|
|
5190
|
-
/**
|
|
5234
|
+
/**
|
|
5235
|
+
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
|
|
5236
|
+
* Available only in secure contexts.
|
|
5237
|
+
*/
|
|
5191
5238
|
interface Gamepad {
|
|
5192
5239
|
readonly axes: ReadonlyArray<number>;
|
|
5193
5240
|
readonly buttons: ReadonlyArray<GamepadButton>;
|
|
@@ -5204,7 +5251,10 @@ declare var Gamepad: {
|
|
|
5204
5251
|
new(): Gamepad;
|
|
5205
5252
|
};
|
|
5206
5253
|
|
|
5207
|
-
/**
|
|
5254
|
+
/**
|
|
5255
|
+
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
|
|
5256
|
+
* Available only in secure contexts.
|
|
5257
|
+
*/
|
|
5208
5258
|
interface GamepadButton {
|
|
5209
5259
|
readonly pressed: boolean;
|
|
5210
5260
|
readonly touched: boolean;
|
|
@@ -5216,7 +5266,10 @@ declare var GamepadButton: {
|
|
|
5216
5266
|
new(): GamepadButton;
|
|
5217
5267
|
};
|
|
5218
5268
|
|
|
5219
|
-
/**
|
|
5269
|
+
/**
|
|
5270
|
+
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
|
|
5271
|
+
* Available only in secure contexts.
|
|
5272
|
+
*/
|
|
5220
5273
|
interface GamepadEvent extends Event {
|
|
5221
5274
|
readonly gamepad: Gamepad;
|
|
5222
5275
|
}
|
|
@@ -5253,6 +5306,7 @@ declare var Geolocation: {
|
|
|
5253
5306
|
new(): Geolocation;
|
|
5254
5307
|
};
|
|
5255
5308
|
|
|
5309
|
+
/** Available only in secure contexts. */
|
|
5256
5310
|
interface GeolocationCoordinates {
|
|
5257
5311
|
readonly accuracy: number;
|
|
5258
5312
|
readonly altitude: number | null;
|
|
@@ -5268,6 +5322,7 @@ declare var GeolocationCoordinates: {
|
|
|
5268
5322
|
new(): GeolocationCoordinates;
|
|
5269
5323
|
};
|
|
5270
5324
|
|
|
5325
|
+
/** Available only in secure contexts. */
|
|
5271
5326
|
interface GeolocationPosition {
|
|
5272
5327
|
readonly coords: GeolocationCoordinates;
|
|
5273
5328
|
readonly timestamp: DOMTimeStamp;
|
|
@@ -6092,6 +6147,7 @@ interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementC
|
|
|
6092
6147
|
spellcheck: boolean;
|
|
6093
6148
|
title: string;
|
|
6094
6149
|
translate: boolean;
|
|
6150
|
+
attachInternals(): ElementInternals;
|
|
6095
6151
|
click(): void;
|
|
6096
6152
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6097
6153
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -6953,6 +7009,7 @@ interface HTMLMediaElement extends HTMLElement {
|
|
|
6953
7009
|
readonly error: MediaError | null;
|
|
6954
7010
|
/** Gets or sets a flag to specify whether playback should restart after it completes. */
|
|
6955
7011
|
loop: boolean;
|
|
7012
|
+
/** Available only in secure contexts. */
|
|
6956
7013
|
readonly mediaKeys: MediaKeys | null;
|
|
6957
7014
|
/** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
|
|
6958
7015
|
muted: boolean;
|
|
@@ -6990,6 +7047,7 @@ interface HTMLMediaElement extends HTMLElement {
|
|
|
6990
7047
|
pause(): void;
|
|
6991
7048
|
/** Loads and starts playback of a media resource. */
|
|
6992
7049
|
play(): Promise<void>;
|
|
7050
|
+
/** Available only in secure contexts. */
|
|
6993
7051
|
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
|
|
6994
7052
|
readonly HAVE_CURRENT_DATA: number;
|
|
6995
7053
|
readonly HAVE_ENOUGH_DATA: number;
|
|
@@ -7543,6 +7601,7 @@ declare var HTMLSelectElement: {
|
|
|
7543
7601
|
|
|
7544
7602
|
interface HTMLSlotElement extends HTMLElement {
|
|
7545
7603
|
name: string;
|
|
7604
|
+
assign(...nodes: (Element | Text)[]): void;
|
|
7546
7605
|
assignedElements(options?: AssignedNodesOptions): Element[];
|
|
7547
7606
|
assignedNodes(options?: AssignedNodesOptions): Node[];
|
|
7548
7607
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -8817,7 +8876,10 @@ declare var MediaCapabilities: {
|
|
|
8817
8876
|
new(): MediaCapabilities;
|
|
8818
8877
|
};
|
|
8819
8878
|
|
|
8820
|
-
/**
|
|
8879
|
+
/**
|
|
8880
|
+
* The MediaDevicesInfo interface contains information that describes a single media input or output device.
|
|
8881
|
+
* Available only in secure contexts.
|
|
8882
|
+
*/
|
|
8821
8883
|
interface MediaDeviceInfo {
|
|
8822
8884
|
readonly deviceId: string;
|
|
8823
8885
|
readonly groupId: string;
|
|
@@ -8835,7 +8897,10 @@ interface MediaDevicesEventMap {
|
|
|
8835
8897
|
"devicechange": Event;
|
|
8836
8898
|
}
|
|
8837
8899
|
|
|
8838
|
-
/**
|
|
8900
|
+
/**
|
|
8901
|
+
* Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
|
|
8902
|
+
* Available only in secure contexts.
|
|
8903
|
+
*/
|
|
8839
8904
|
interface MediaDevices extends EventTarget {
|
|
8840
8905
|
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
|
|
8841
8906
|
enumerateDevices(): Promise<MediaDeviceInfo[]>;
|
|
@@ -8892,7 +8957,10 @@ declare var MediaError: {
|
|
|
8892
8957
|
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
|
|
8893
8958
|
};
|
|
8894
8959
|
|
|
8895
|
-
/**
|
|
8960
|
+
/**
|
|
8961
|
+
* This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
|
|
8962
|
+
* Available only in secure contexts.
|
|
8963
|
+
*/
|
|
8896
8964
|
interface MediaKeyMessageEvent extends Event {
|
|
8897
8965
|
readonly message: ArrayBuffer;
|
|
8898
8966
|
readonly messageType: MediaKeyMessageType;
|
|
@@ -8908,7 +8976,10 @@ interface MediaKeySessionEventMap {
|
|
|
8908
8976
|
"message": MediaKeyMessageEvent;
|
|
8909
8977
|
}
|
|
8910
8978
|
|
|
8911
|
-
/**
|
|
8979
|
+
/**
|
|
8980
|
+
* This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM).
|
|
8981
|
+
* Available only in secure contexts.
|
|
8982
|
+
*/
|
|
8912
8983
|
interface MediaKeySession extends EventTarget {
|
|
8913
8984
|
readonly closed: Promise<MediaKeySessionClosedReason>;
|
|
8914
8985
|
readonly expiration: number;
|
|
@@ -8932,7 +9003,10 @@ declare var MediaKeySession: {
|
|
|
8932
9003
|
new(): MediaKeySession;
|
|
8933
9004
|
};
|
|
8934
9005
|
|
|
8935
|
-
/**
|
|
9006
|
+
/**
|
|
9007
|
+
* This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
|
|
9008
|
+
* Available only in secure contexts.
|
|
9009
|
+
*/
|
|
8936
9010
|
interface MediaKeyStatusMap {
|
|
8937
9011
|
readonly size: number;
|
|
8938
9012
|
get(keyId: BufferSource): MediaKeyStatus | undefined;
|
|
@@ -8945,7 +9019,10 @@ declare var MediaKeyStatusMap: {
|
|
|
8945
9019
|
new(): MediaKeyStatusMap;
|
|
8946
9020
|
};
|
|
8947
9021
|
|
|
8948
|
-
/**
|
|
9022
|
+
/**
|
|
9023
|
+
* This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
|
|
9024
|
+
* Available only in secure contexts.
|
|
9025
|
+
*/
|
|
8949
9026
|
interface MediaKeySystemAccess {
|
|
8950
9027
|
readonly keySystem: string;
|
|
8951
9028
|
createMediaKeys(): Promise<MediaKeys>;
|
|
@@ -8957,7 +9034,10 @@ declare var MediaKeySystemAccess: {
|
|
|
8957
9034
|
new(): MediaKeySystemAccess;
|
|
8958
9035
|
};
|
|
8959
9036
|
|
|
8960
|
-
/**
|
|
9037
|
+
/**
|
|
9038
|
+
* This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
|
|
9039
|
+
* Available only in secure contexts.
|
|
9040
|
+
*/
|
|
8961
9041
|
interface MediaKeys {
|
|
8962
9042
|
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
|
|
8963
9043
|
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
|
|
@@ -9031,7 +9111,7 @@ declare var MediaQueryListEvent: {
|
|
|
9031
9111
|
|
|
9032
9112
|
interface MediaRecorderEventMap {
|
|
9033
9113
|
"dataavailable": BlobEvent;
|
|
9034
|
-
"error":
|
|
9114
|
+
"error": MediaRecorderErrorEvent;
|
|
9035
9115
|
"pause": Event;
|
|
9036
9116
|
"resume": Event;
|
|
9037
9117
|
"start": Event;
|
|
@@ -9042,7 +9122,7 @@ interface MediaRecorder extends EventTarget {
|
|
|
9042
9122
|
readonly audioBitsPerSecond: number;
|
|
9043
9123
|
readonly mimeType: string;
|
|
9044
9124
|
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
|
|
9045
|
-
onerror: ((this: MediaRecorder, ev:
|
|
9125
|
+
onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null;
|
|
9046
9126
|
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
9047
9127
|
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
9048
9128
|
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
|
|
@@ -9461,20 +9541,27 @@ declare var NamedNodeMap: {
|
|
|
9461
9541
|
|
|
9462
9542
|
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
|
|
9463
9543
|
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9544
|
+
/** Available only in secure contexts. */
|
|
9464
9545
|
readonly clipboard: Clipboard;
|
|
9546
|
+
/** Available only in secure contexts. */
|
|
9465
9547
|
readonly credentials: CredentialsContainer;
|
|
9466
9548
|
readonly doNotTrack: string | null;
|
|
9467
9549
|
readonly geolocation: Geolocation;
|
|
9468
9550
|
readonly maxTouchPoints: number;
|
|
9469
9551
|
readonly mediaCapabilities: MediaCapabilities;
|
|
9552
|
+
/** Available only in secure contexts. */
|
|
9470
9553
|
readonly mediaDevices: MediaDevices;
|
|
9471
9554
|
readonly mediaSession: MediaSession;
|
|
9472
9555
|
readonly permissions: Permissions;
|
|
9473
|
-
|
|
9556
|
+
/** Available only in secure contexts. */
|
|
9474
9557
|
readonly serviceWorker: ServiceWorkerContainer;
|
|
9558
|
+
/** Available only in secure contexts. */
|
|
9559
|
+
canShare(data?: ShareData): boolean;
|
|
9475
9560
|
getGamepads(): (Gamepad | null)[];
|
|
9561
|
+
/** Available only in secure contexts. */
|
|
9476
9562
|
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
|
|
9477
9563
|
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
|
|
9564
|
+
/** Available only in secure contexts. */
|
|
9478
9565
|
share(data?: ShareData): Promise<void>;
|
|
9479
9566
|
vibrate(pattern: VibratePattern): boolean;
|
|
9480
9567
|
}
|
|
@@ -9493,6 +9580,7 @@ interface NavigatorConcurrentHardware {
|
|
|
9493
9580
|
}
|
|
9494
9581
|
|
|
9495
9582
|
interface NavigatorContentUtils {
|
|
9583
|
+
/** Available only in secure contexts. */
|
|
9496
9584
|
registerProtocolHandler(scheme: string, url: string | URL): void;
|
|
9497
9585
|
}
|
|
9498
9586
|
|
|
@@ -9541,6 +9629,7 @@ interface NavigatorPlugins {
|
|
|
9541
9629
|
javaEnabled(): boolean;
|
|
9542
9630
|
}
|
|
9543
9631
|
|
|
9632
|
+
/** Available only in secure contexts. */
|
|
9544
9633
|
interface NavigatorStorage {
|
|
9545
9634
|
readonly storage: StorageManager;
|
|
9546
9635
|
}
|
|
@@ -9968,41 +10057,7 @@ declare var Path2D: {
|
|
|
9968
10057
|
new(path?: Path2D | string): Path2D;
|
|
9969
10058
|
};
|
|
9970
10059
|
|
|
9971
|
-
/**
|
|
9972
|
-
* This Payment Request API interface is used to store shipping or payment address information.
|
|
9973
|
-
* @deprecated
|
|
9974
|
-
*/
|
|
9975
|
-
interface PaymentAddress {
|
|
9976
|
-
/** @deprecated */
|
|
9977
|
-
readonly addressLine: ReadonlyArray<string>;
|
|
9978
|
-
/** @deprecated */
|
|
9979
|
-
readonly city: string;
|
|
9980
|
-
/** @deprecated */
|
|
9981
|
-
readonly country: string;
|
|
9982
|
-
/** @deprecated */
|
|
9983
|
-
readonly dependentLocality: string;
|
|
9984
|
-
/** @deprecated */
|
|
9985
|
-
readonly organization: string;
|
|
9986
|
-
/** @deprecated */
|
|
9987
|
-
readonly phone: string;
|
|
9988
|
-
/** @deprecated */
|
|
9989
|
-
readonly postalCode: string;
|
|
9990
|
-
/** @deprecated */
|
|
9991
|
-
readonly recipient: string;
|
|
9992
|
-
/** @deprecated */
|
|
9993
|
-
readonly region: string;
|
|
9994
|
-
/** @deprecated */
|
|
9995
|
-
readonly sortingCode: string;
|
|
9996
|
-
/** @deprecated */
|
|
9997
|
-
toJSON(): any;
|
|
9998
|
-
}
|
|
9999
|
-
|
|
10000
|
-
/** @deprecated */
|
|
10001
|
-
declare var PaymentAddress: {
|
|
10002
|
-
prototype: PaymentAddress;
|
|
10003
|
-
new(): PaymentAddress;
|
|
10004
|
-
};
|
|
10005
|
-
|
|
10060
|
+
/** Available only in secure contexts. */
|
|
10006
10061
|
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
|
|
10007
10062
|
readonly methodDetails: any;
|
|
10008
10063
|
readonly methodName: string;
|
|
@@ -10017,7 +10072,10 @@ interface PaymentRequestEventMap {
|
|
|
10017
10072
|
"paymentmethodchange": Event;
|
|
10018
10073
|
}
|
|
10019
10074
|
|
|
10020
|
-
/**
|
|
10075
|
+
/**
|
|
10076
|
+
* This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
|
|
10077
|
+
* Available only in secure contexts.
|
|
10078
|
+
*/
|
|
10021
10079
|
interface PaymentRequest extends EventTarget {
|
|
10022
10080
|
readonly id: string;
|
|
10023
10081
|
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
|
|
@@ -10035,7 +10093,10 @@ declare var PaymentRequest: {
|
|
|
10035
10093
|
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
|
|
10036
10094
|
};
|
|
10037
10095
|
|
|
10038
|
-
/**
|
|
10096
|
+
/**
|
|
10097
|
+
* This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
|
|
10098
|
+
* Available only in secure contexts.
|
|
10099
|
+
*/
|
|
10039
10100
|
interface PaymentRequestUpdateEvent extends Event {
|
|
10040
10101
|
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
|
|
10041
10102
|
}
|
|
@@ -10045,7 +10106,10 @@ declare var PaymentRequestUpdateEvent: {
|
|
|
10045
10106
|
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
|
|
10046
10107
|
};
|
|
10047
10108
|
|
|
10048
|
-
/**
|
|
10109
|
+
/**
|
|
10110
|
+
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
|
|
10111
|
+
* Available only in secure contexts.
|
|
10112
|
+
*/
|
|
10049
10113
|
interface PaymentResponse extends EventTarget {
|
|
10050
10114
|
readonly details: any;
|
|
10051
10115
|
readonly methodName: string;
|
|
@@ -10445,6 +10509,7 @@ interface PointerEvent extends MouseEvent {
|
|
|
10445
10509
|
readonly tiltY: number;
|
|
10446
10510
|
readonly twist: number;
|
|
10447
10511
|
readonly width: number;
|
|
10512
|
+
/** Available only in secure contexts. */
|
|
10448
10513
|
getCoalescedEvents(): PointerEvent[];
|
|
10449
10514
|
getPredictedEvents(): PointerEvent[];
|
|
10450
10515
|
}
|
|
@@ -10499,6 +10564,7 @@ declare var PromiseRejectionEvent: {
|
|
|
10499
10564
|
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
|
|
10500
10565
|
};
|
|
10501
10566
|
|
|
10567
|
+
/** Available only in secure contexts. */
|
|
10502
10568
|
interface PublicKeyCredential extends Credential {
|
|
10503
10569
|
readonly rawId: ArrayBuffer;
|
|
10504
10570
|
readonly response: AuthenticatorResponse;
|
|
@@ -10511,7 +10577,10 @@ declare var PublicKeyCredential: {
|
|
|
10511
10577
|
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
|
|
10512
10578
|
};
|
|
10513
10579
|
|
|
10514
|
-
/**
|
|
10580
|
+
/**
|
|
10581
|
+
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
|
|
10582
|
+
* Available only in secure contexts.
|
|
10583
|
+
*/
|
|
10515
10584
|
interface PushManager {
|
|
10516
10585
|
getSubscription(): Promise<PushSubscription | null>;
|
|
10517
10586
|
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
|
|
@@ -10524,7 +10593,10 @@ declare var PushManager: {
|
|
|
10524
10593
|
readonly supportedContentEncodings: ReadonlyArray<string>;
|
|
10525
10594
|
};
|
|
10526
10595
|
|
|
10527
|
-
/**
|
|
10596
|
+
/**
|
|
10597
|
+
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
|
|
10598
|
+
* Available only in secure contexts.
|
|
10599
|
+
*/
|
|
10528
10600
|
interface PushSubscription {
|
|
10529
10601
|
readonly endpoint: string;
|
|
10530
10602
|
readonly options: PushSubscriptionOptions;
|
|
@@ -10538,6 +10610,7 @@ declare var PushSubscription: {
|
|
|
10538
10610
|
new(): PushSubscription;
|
|
10539
10611
|
};
|
|
10540
10612
|
|
|
10613
|
+
/** Available only in secure contexts. */
|
|
10541
10614
|
interface PushSubscriptionOptions {
|
|
10542
10615
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
10543
10616
|
}
|
|
@@ -10930,7 +11003,6 @@ interface ReadableStream<R = any> {
|
|
|
10930
11003
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
10931
11004
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
10932
11005
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
10933
|
-
forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
|
|
10934
11006
|
}
|
|
10935
11007
|
|
|
10936
11008
|
declare var ReadableStream: {
|
|
@@ -12918,7 +12990,10 @@ interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
|
|
|
12918
12990
|
"statechange": Event;
|
|
12919
12991
|
}
|
|
12920
12992
|
|
|
12921
|
-
/**
|
|
12993
|
+
/**
|
|
12994
|
+
* 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.
|
|
12995
|
+
* Available only in secure contexts.
|
|
12996
|
+
*/
|
|
12922
12997
|
interface ServiceWorker extends EventTarget, AbstractWorker {
|
|
12923
12998
|
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
|
|
12924
12999
|
readonly scriptURL: string;
|
|
@@ -12942,7 +13017,10 @@ interface ServiceWorkerContainerEventMap {
|
|
|
12942
13017
|
"messageerror": MessageEvent;
|
|
12943
13018
|
}
|
|
12944
13019
|
|
|
12945
|
-
/**
|
|
13020
|
+
/**
|
|
13021
|
+
* 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.
|
|
13022
|
+
* Available only in secure contexts.
|
|
13023
|
+
*/
|
|
12946
13024
|
interface ServiceWorkerContainer extends EventTarget {
|
|
12947
13025
|
readonly controller: ServiceWorker | null;
|
|
12948
13026
|
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
|
|
@@ -12968,7 +13046,10 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
12968
13046
|
"updatefound": Event;
|
|
12969
13047
|
}
|
|
12970
13048
|
|
|
12971
|
-
/**
|
|
13049
|
+
/**
|
|
13050
|
+
* 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.
|
|
13051
|
+
* Available only in secure contexts.
|
|
13052
|
+
*/
|
|
12972
13053
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
12973
13054
|
readonly active: ServiceWorker | null;
|
|
12974
13055
|
readonly installing: ServiceWorker | null;
|
|
@@ -13286,6 +13367,7 @@ declare var StorageEvent: {
|
|
|
13286
13367
|
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
|
|
13287
13368
|
};
|
|
13288
13369
|
|
|
13370
|
+
/** Available only in secure contexts. */
|
|
13289
13371
|
interface StorageManager {
|
|
13290
13372
|
estimate(): Promise<StorageEstimate>;
|
|
13291
13373
|
persist(): Promise<boolean>;
|
|
@@ -13341,7 +13423,10 @@ declare var SubmitEvent: {
|
|
|
13341
13423
|
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
|
|
13342
13424
|
};
|
|
13343
13425
|
|
|
13344
|
-
/**
|
|
13426
|
+
/**
|
|
13427
|
+
* 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).
|
|
13428
|
+
* Available only in secure contexts.
|
|
13429
|
+
*/
|
|
13345
13430
|
interface SubtleCrypto {
|
|
13346
13431
|
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
13347
13432
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
@@ -13368,7 +13453,6 @@ declare var SubtleCrypto: {
|
|
|
13368
13453
|
|
|
13369
13454
|
/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
|
|
13370
13455
|
interface Text extends CharacterData, Slottable {
|
|
13371
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
13372
13456
|
/** Returns the combined data of all direct Text node siblings. */
|
|
13373
13457
|
readonly wholeText: string;
|
|
13374
13458
|
/** Splits data at the given offset and returns the remainder as Text node. */
|
|
@@ -16052,7 +16136,9 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
16052
16136
|
readonly menubar: BarProp;
|
|
16053
16137
|
name: string;
|
|
16054
16138
|
readonly navigator: Navigator;
|
|
16139
|
+
/** Available only in secure contexts. */
|
|
16055
16140
|
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
16141
|
+
/** Available only in secure contexts. */
|
|
16056
16142
|
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
16057
16143
|
/** @deprecated */
|
|
16058
16144
|
onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
@@ -16200,6 +16286,7 @@ interface WindowLocalStorage {
|
|
|
16200
16286
|
}
|
|
16201
16287
|
|
|
16202
16288
|
interface WindowOrWorkerGlobalScope {
|
|
16289
|
+
/** Available only in secure contexts. */
|
|
16203
16290
|
readonly caches: CacheStorage;
|
|
16204
16291
|
readonly crossOriginIsolated: boolean;
|
|
16205
16292
|
readonly crypto: Crypto;
|
|
@@ -16248,6 +16335,7 @@ declare var Worker: {
|
|
|
16248
16335
|
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
|
|
16249
16336
|
};
|
|
16250
16337
|
|
|
16338
|
+
/** Available only in secure contexts. */
|
|
16251
16339
|
interface Worklet {
|
|
16252
16340
|
/**
|
|
16253
16341
|
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
|
|
@@ -16593,7 +16681,8 @@ declare namespace WebAssembly {
|
|
|
16593
16681
|
|
|
16594
16682
|
var CompileError: {
|
|
16595
16683
|
prototype: CompileError;
|
|
16596
|
-
new(): CompileError;
|
|
16684
|
+
new(message?: string): CompileError;
|
|
16685
|
+
(message?: string): CompileError;
|
|
16597
16686
|
};
|
|
16598
16687
|
|
|
16599
16688
|
interface Global {
|
|
@@ -16620,7 +16709,8 @@ declare namespace WebAssembly {
|
|
|
16620
16709
|
|
|
16621
16710
|
var LinkError: {
|
|
16622
16711
|
prototype: LinkError;
|
|
16623
|
-
new(): LinkError;
|
|
16712
|
+
new(message?: string): LinkError;
|
|
16713
|
+
(message?: string): LinkError;
|
|
16624
16714
|
};
|
|
16625
16715
|
|
|
16626
16716
|
interface Memory {
|
|
@@ -16649,7 +16739,8 @@ declare namespace WebAssembly {
|
|
|
16649
16739
|
|
|
16650
16740
|
var RuntimeError: {
|
|
16651
16741
|
prototype: RuntimeError;
|
|
16652
|
-
new(): RuntimeError;
|
|
16742
|
+
new(message?: string): RuntimeError;
|
|
16743
|
+
(message?: string): RuntimeError;
|
|
16653
16744
|
};
|
|
16654
16745
|
|
|
16655
16746
|
interface Table {
|
|
@@ -16794,7 +16885,7 @@ interface PositionErrorCallback {
|
|
|
16794
16885
|
}
|
|
16795
16886
|
|
|
16796
16887
|
interface QueuingStrategySize<T = any> {
|
|
16797
|
-
(chunk
|
|
16888
|
+
(chunk: T): number;
|
|
16798
16889
|
}
|
|
16799
16890
|
|
|
16800
16891
|
interface RTCPeerConnectionErrorCallback {
|
|
@@ -17086,7 +17177,9 @@ declare var menubar: BarProp;
|
|
|
17086
17177
|
/** @deprecated */
|
|
17087
17178
|
declare const name: void;
|
|
17088
17179
|
declare var navigator: Navigator;
|
|
17180
|
+
/** Available only in secure contexts. */
|
|
17089
17181
|
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
|
|
17182
|
+
/** Available only in secure contexts. */
|
|
17090
17183
|
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
|
|
17091
17184
|
/** @deprecated */
|
|
17092
17185
|
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
|
|
@@ -17467,6 +17560,7 @@ declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
|
|
|
17467
17560
|
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
|
|
17468
17561
|
declare var onunload: ((this: Window, ev: Event) => any) | null;
|
|
17469
17562
|
declare var localStorage: Storage;
|
|
17563
|
+
/** Available only in secure contexts. */
|
|
17470
17564
|
declare var caches: CacheStorage;
|
|
17471
17565
|
declare var crossOriginIsolated: boolean;
|
|
17472
17566
|
declare var crypto: Crypto;
|
|
@@ -17629,7 +17723,7 @@ type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
|
17629
17723
|
type OverSampleType = "2x" | "4x" | "none";
|
|
17630
17724
|
type PanningModelType = "HRTF" | "equalpower";
|
|
17631
17725
|
type PaymentComplete = "fail" | "success" | "unknown";
|
|
17632
|
-
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
|
|
17726
|
+
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
17633
17727
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
17634
17728
|
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
|
|
17635
17729
|
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
|