summaryrefslogtreecommitdiff
path: root/cli/dts/lib.dom.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts/lib.dom.d.ts')
-rw-r--r--cli/dts/lib.dom.d.ts5173
1 files changed, 2126 insertions, 3047 deletions
diff --git a/cli/dts/lib.dom.d.ts b/cli/dts/lib.dom.d.ts
index c5cd8c389..ead257b3d 100644
--- a/cli/dts/lib.dom.d.ts
+++ b/cli/dts/lib.dom.d.ts
@@ -19,33 +19,21 @@ and limitations under the License.
/////////////////////////////
-/// DOM APIs
+/// Window APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
-}
-
-interface AddressErrors {
- addressLine?: string;
- city?: string;
- country?: string;
- dependentLocality?: string;
- organization?: string;
- phone?: string;
- postalCode?: string;
- recipient?: string;
- region?: string;
- sortingCode?: string;
+ signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
- iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+ iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
- counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+ counter: BufferSource;
length: number;
}
@@ -54,8 +42,8 @@ interface AesDerivedKeyParams extends Algorithm {
}
interface AesGcmParams extends Algorithm {
- additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
- iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+ additionalData?: BufferSource;
+ iv: BufferSource;
tagLength?: number;
}
@@ -108,9 +96,12 @@ interface AudioBufferSourceOptions {
playbackRate?: number;
}
-interface AudioContextInfo {
- currentTime?: number;
- sampleRate?: number;
+interface AudioConfiguration {
+ bitrate?: number;
+ channels?: string;
+ contentType: string;
+ samplerate?: number;
+ spatialRendering?: boolean;
}
interface AudioContextOptions {
@@ -124,14 +115,6 @@ interface AudioNodeOptions {
channelInterpretation?: ChannelInterpretation;
}
-interface AudioParamDescriptor {
- automationRate?: AutomationRate;
- defaultValue?: number;
- maxValue?: number;
- minValue?: number;
- name: string;
-}
-
interface AudioProcessingEventInit extends EventInit {
inputBuffer: AudioBuffer;
outputBuffer: AudioBuffer;
@@ -140,7 +123,7 @@ interface AudioProcessingEventInit extends EventInit {
interface AudioTimestamp {
contextTime?: number;
- performanceTime?: number;
+ performanceTime?: DOMHighResTimeStamp;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
@@ -179,13 +162,20 @@ interface BiquadFilterOptions extends AudioNodeOptions {
type?: BiquadFilterType;
}
+interface BlobEventInit {
+ data: Blob;
+ timecode?: DOMHighResTimeStamp;
+}
+
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
-interface ByteLengthChunk {
- byteLength?: number;
+interface CSSStyleSheetInit {
+ baseURL?: string;
+ disabled?: boolean;
+ media?: MediaList | string;
}
interface CacheQueryOptions {
@@ -196,7 +186,9 @@ interface CacheQueryOptions {
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
+ colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
+ willReadFrequently?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
@@ -216,6 +208,10 @@ interface ClipboardEventInit extends EventInit {
clipboardData?: DataTransfer | null;
}
+interface ClipboardItemOptions {
+ presentationStyle?: PresentationStyle;
+}
+
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
@@ -227,11 +223,12 @@ interface CompositionEventInit extends UIEventInit {
}
interface ComputedEffectTiming extends EffectTiming {
- activeDuration?: number;
+ activeDuration?: CSSNumberish;
currentIteration?: number | null;
- endTime?: number;
- localTime?: number | null;
- progress?: number | null;
+ endTime?: CSSNumberish;
+ localTime?: CSSNumberish | null;
+ progress?: CSSNumberish | null;
+ startTime?: CSSNumberish;
}
interface ComputedKeyframe {
@@ -242,10 +239,6 @@ interface ComputedKeyframe {
[property: string]: string | number | null | undefined;
}
-interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {
- arrayOfDomainStrings?: string[];
-}
-
interface ConstantSourceOptions {
offset?: number;
}
@@ -270,11 +263,6 @@ interface ConstrainULongRange extends ULongRange {
ideal?: number;
}
-interface ConstrainVideoFacingModeParameters {
- exact?: VideoFacingModeEnum | VideoFacingModeEnum[];
- ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];
-}
-
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
@@ -295,6 +283,11 @@ interface CredentialRequestOptions {
signal?: AbortSignal;
}
+interface CryptoKeyPair {
+ privateKey?: CryptoKey;
+ publicKey?: CryptoKey;
+}
+
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
@@ -380,13 +373,13 @@ interface DeviceOrientationEventInit extends EventInit {
gamma?: number | null;
}
-interface DevicePermissionDescriptor extends PermissionDescriptor {
- deviceId?: string;
- name: "camera" | "microphone" | "speaker";
+interface DisplayMediaStreamConstraints {
+ audio?: boolean | MediaTrackConstraints;
+ video?: boolean | MediaTrackConstraints;
}
interface DocumentTimelineOptions {
- originTime?: number;
+ originTime?: DOMHighResTimeStamp;
}
interface DoubleRange {
@@ -435,6 +428,7 @@ interface EffectTiming {
fill?: FillMode;
iterationStart?: number;
iterations?: number;
+ playbackRate?: number;
}
interface ElementCreationOptions {
@@ -484,35 +478,39 @@ interface EventSourceInit {
withCredentials?: boolean;
}
-interface ExceptionInformation {
- domain?: string | null;
-}
-
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
+interface FileSystemFlags {
+ create?: boolean;
+ exclusive?: boolean;
+}
+
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
-interface FocusNavigationEventInit extends EventInit {
- navigationReason?: string | null;
- originHeight?: number;
- originLeft?: number;
- originTop?: number;
- originWidth?: number;
+interface FocusOptions {
+ preventScroll?: boolean;
+}
+
+interface FontFaceDescriptors {
+ display?: string;
+ featureSettings?: string;
+ stretch?: string;
+ style?: string;
+ unicodeRange?: string;
+ variant?: string;
+ weight?: string;
}
-interface FocusNavigationOrigin {
- originHeight?: number;
- originLeft?: number;
- originTop?: number;
- originWidth?: number;
+interface FontFaceSetLoadEventInit extends EventInit {
+ fontfaces?: FontFace[];
}
-interface FocusOptions {
- preventScroll?: boolean;
+interface FormDataEventInit extends EventInit {
+ formData: FormData;
}
interface FullscreenOptions {
@@ -527,6 +525,10 @@ interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
+interface GetAnimationsOptions {
+ subtree?: boolean;
+}
+
interface GetNotificationOptions {
tag?: string;
}
@@ -542,8 +544,8 @@ interface HashChangeEventInit extends EventInit {
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
- info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
- salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+ info: BufferSource;
+ salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
@@ -561,6 +563,11 @@ interface HmacKeyGenParams extends Algorithm {
length?: number;
}
+interface IDBDatabaseInfo {
+ name?: string;
+ version?: number;
+}
+
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
@@ -581,6 +588,10 @@ interface IIRFilterOptions extends AudioNodeOptions {
feedforward: number[];
}
+interface IdleRequestOptions {
+ timeout?: number;
+}
+
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
@@ -594,9 +605,8 @@ interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
-interface ImageEncodeOptions {
- quality?: number;
- type?: string;
+interface ImageDataSettings {
+ colorSpace?: PredefinedColorSpace;
}
interface ImportMeta {
@@ -605,8 +615,10 @@ interface ImportMeta {
interface InputEventInit extends UIEventInit {
data?: string | null;
+ dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
+ targetRanges?: StaticRange[];
}
interface IntersectionObserverEntryInit {
@@ -616,7 +628,7 @@ interface IntersectionObserverEntryInit {
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
- time: number;
+ time: DOMHighResTimeStamp;
}
interface IntersectionObserverInit {
@@ -676,17 +688,51 @@ interface KeyframeAnimationOptions extends KeyframeEffectOptions {
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
+ pseudoElement?: string | null;
+}
+
+interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
+ configuration?: MediaDecodingConfiguration;
+}
+
+interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
+ configuration?: MediaEncodingConfiguration;
+}
+
+interface MediaCapabilitiesInfo {
+ powerEfficient: boolean;
+ smooth: boolean;
+ supported: boolean;
+}
+
+interface MediaConfiguration {
+ audio?: AudioConfiguration;
+ video?: VideoConfiguration;
+}
+
+interface MediaDecodingConfiguration extends MediaConfiguration {
+ type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
+interface MediaEncodingConfiguration extends MediaConfiguration {
+ type: MediaEncodingType;
+}
+
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
+interface MediaImage {
+ sizes?: string;
+ src: string;
+ type?: string;
+}
+
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
@@ -704,34 +750,54 @@ interface MediaKeySystemConfiguration {
interface MediaKeySystemMediaCapability {
contentType?: string;
+ encryptionScheme?: string | null;
robustness?: string;
}
+interface MediaMetadataInit {
+ album?: string;
+ artist?: string;
+ artwork?: MediaImage[];
+ title?: string;
+}
+
+interface MediaPositionState {
+ duration?: number;
+ playbackRate?: number;
+ position?: number;
+}
+
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
-interface MediaStreamAudioSourceOptions {
- mediaStream: MediaStream;
+interface MediaRecorderErrorEventInit extends EventInit {
+ error: DOMException;
}
-interface MediaStreamConstraints {
- audio?: boolean | MediaTrackConstraints;
- peerIdentity?: string;
- video?: boolean | MediaTrackConstraints;
+interface MediaRecorderOptions {
+ audioBitsPerSecond?: number;
+ bitsPerSecond?: number;
+ mimeType?: string;
+ videoBitsPerSecond?: number;
}
-interface MediaStreamErrorEventInit extends EventInit {
- error?: MediaStreamError | null;
+interface MediaSessionActionDetails {
+ action: MediaSessionAction;
+ fastSeek?: boolean | null;
+ seekOffset?: number | null;
+ seekTime?: number | null;
}
-interface MediaStreamEventInit extends EventInit {
- stream?: MediaStream;
+interface MediaStreamAudioSourceOptions {
+ mediaStream: MediaStream;
}
-interface MediaStreamTrackAudioSourceOptions {
- mediaStreamTrack: MediaStreamTrack;
+interface MediaStreamConstraints {
+ audio?: boolean | MediaTrackConstraints;
+ peerIdentity?: string;
+ video?: boolean | MediaTrackConstraints;
}
interface MediaStreamTrackEventInit extends EventInit {
@@ -742,13 +808,16 @@ interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
+ cursor?: string[];
deviceId?: string;
+ displaySurface?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
latency?: DoubleRange;
+ logicalSurface?: boolean;
noiseSuppression?: boolean[];
resizeMode?: string[];
sampleRate?: ULongRange;
@@ -758,7 +827,6 @@ interface MediaTrackCapabilities {
interface MediaTrackConstraintSet {
aspectRatio?: ConstrainDouble;
- autoGainControl?: ConstrainBoolean;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
@@ -767,10 +835,9 @@ interface MediaTrackConstraintSet {
groupId?: ConstrainDOMString;
height?: ConstrainULong;
latency?: ConstrainDouble;
- noiseSuppression?: ConstrainBoolean;
- resizeMode?: ConstrainDOMString;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
+ suppressLocalAudioPlayback?: ConstrainBoolean;
width?: ConstrainULong;
}
@@ -780,17 +847,13 @@ interface MediaTrackConstraints extends MediaTrackConstraintSet {
interface MediaTrackSettings {
aspectRatio?: number;
- autoGainControl?: boolean;
- channelCount?: number;
deviceId?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
- latency?: number;
- noiseSuppression?: boolean;
- resizeMode?: string;
+ restrictOwnAudio?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
@@ -798,19 +861,15 @@ interface MediaTrackSettings {
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
- autoGainControl?: boolean;
- channelCount?: boolean;
deviceId?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
- latency?: boolean;
- noiseSuppression?: boolean;
- resizeMode?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
+ suppressLocalAudioPlayback?: boolean;
width?: boolean;
}
@@ -822,11 +881,6 @@ interface MessageEventInit<T = any> extends EventInit {
source?: MessageEventSource | null;
}
-interface MidiPermissionDescriptor extends PermissionDescriptor {
- name: "midi";
- sysex?: boolean;
-}
-
interface MouseEventInit extends EventModifierInit {
button?: number;
buttons?: number;
@@ -874,11 +928,6 @@ interface MutationObserverInit {
subtree?: boolean;
}
-interface NavigationPreloadState {
- enabled?: boolean;
- headerValue?: string;
-}
-
interface NotificationAction {
action: string;
icon?: string;
@@ -898,7 +947,7 @@ interface NotificationOptions {
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
- timestamp?: number;
+ timestamp?: DOMTimeStamp;
vibrate?: VibratePattern;
}
@@ -921,6 +970,7 @@ interface OptionalEffectTiming {
fill?: FillMode;
iterationStart?: number;
iterations?: number;
+ playbackRate?: number;
}
interface OscillatorOptions extends AudioNodeOptions {
@@ -951,12 +1001,6 @@ interface PannerOptions extends AudioNodeOptions {
rolloffFactor?: number;
}
-interface PayerErrors {
- email?: string;
- name?: string;
- phone?: string;
-}
-
interface PaymentCurrencyAmount {
currency: string;
value: string;
@@ -965,7 +1009,6 @@ interface PaymentCurrencyAmount {
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
- shippingOptions?: PaymentShippingOption[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
@@ -976,15 +1019,12 @@ interface PaymentDetailsInit extends PaymentDetailsBase {
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
- supportedMethods: string | string[];
+ supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
- error?: string;
- payerErrors?: PayerErrors;
paymentMethodErrors?: any;
- shippingAddressErrors?: AddressErrors;
total?: PaymentItem;
}
@@ -1001,39 +1041,33 @@ interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
interface PaymentMethodData {
data?: any;
- supportedMethods: string | string[];
-}
-
-interface PaymentOptions {
- requestBillingAddress?: boolean;
- requestPayerEmail?: boolean;
- requestPayerName?: boolean;
- requestPayerPhone?: boolean;
- requestShipping?: boolean;
- shippingType?: PaymentShippingType;
+ supportedMethods: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
-interface PaymentShippingOption {
- amount: PaymentCurrencyAmount;
- id: string;
- label: string;
- selected?: boolean;
-}
-
interface PaymentValidationErrors {
error?: string;
- payer?: PayerErrors;
paymentMethod?: any;
- shippingAddress?: AddressErrors;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
- salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+ salt: BufferSource;
+}
+
+interface PerformanceMarkOptions {
+ detail?: any;
+ startTime?: DOMHighResTimeStamp;
+}
+
+interface PerformanceMeasureOptions {
+ detail?: any;
+ duration?: DOMHighResTimeStamp;
+ end?: string | DOMHighResTimeStamp;
+ start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
@@ -1147,14 +1181,9 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
id: BufferSource;
}
-interface PushPermissionDescriptor extends PermissionDescriptor {
- name: "push";
- userVisibleOnly?: boolean;
-}
-
interface PushSubscriptionJSON {
endpoint?: string;
- expirationTime?: number | null;
+ expirationTime?: DOMTimeStamp | null;
keys?: Record<string, string>;
}
@@ -1181,7 +1210,7 @@ interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}
interface RTCCertificateExpiration {
- expires?: number;
+ expires?: DOMTimeStamp;
}
interface RTCConfiguration {
@@ -1215,48 +1244,6 @@ interface RTCDtlsFingerprint {
value?: string;
}
-interface RTCDtlsParameters {
- fingerprints?: RTCDtlsFingerprint[];
- role?: RTCDtlsRole;
-}
-
-interface RTCErrorEventInit extends EventInit {
- error: RTCError;
-}
-
-interface RTCErrorInit {
- errorDetail: RTCErrorDetailType;
- receivedAlert?: number;
- sctpCauseCode?: number;
- sdpLineNumber?: number;
- sentAlert?: number;
-}
-
-interface RTCIceCandidateAttributes extends RTCStats {
- addressSourceUrl?: string;
- candidateType?: RTCStatsIceCandidateType;
- ipAddress?: string;
- portNumber?: number;
- priority?: number;
- transport?: string;
-}
-
-interface RTCIceCandidateComplete {
-}
-
-interface RTCIceCandidateDictionary {
- foundation?: string;
- ip?: string;
- msMTurnSessionId?: string;
- port?: number;
- priority?: number;
- protocol?: RTCIceProtocol;
- relatedAddress?: string;
- relatedPort?: number;
- tcpType?: RTCIceTcpCandidateType;
- type?: RTCIceCandidateType;
-}
-
interface RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
@@ -1264,54 +1251,22 @@ interface RTCIceCandidateInit {
usernameFragment?: string | null;
}
-interface RTCIceCandidatePair {
- local?: RTCIceCandidate;
- remote?: RTCIceCandidate;
-}
-
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
- bytesDiscardedOnSend?: number;
bytesReceived?: number;
bytesSent?: number;
- circuitBreakerTriggerCount?: number;
- consentExpiredTimestamp?: number;
- consentRequestsSent?: number;
currentRoundTripTime?: number;
- currentRtt?: number;
- firstRequestTimestamp?: number;
- lastPacketReceivedTimestamp?: number;
- lastPacketSentTimestamp?: number;
- lastRequestTimestamp?: number;
- lastResponseTimestamp?: number;
- localCandidateId?: string;
+ localCandidateId: string;
nominated?: boolean;
- packetsDiscardedOnSend?: number;
- packetsReceived?: number;
- packetsSent?: number;
- priority?: number;
- remoteCandidateId?: string;
+ remoteCandidateId: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
- retransmissionsReceived?: number;
- retransmissionsSent?: number;
- state?: RTCStatsIceCandidatePairState;
+ state: RTCStatsIceCandidatePairState;
totalRoundTripTime?: number;
- totalRtt?: number;
- transportId?: string;
-}
-
-interface RTCIceGatherOptions {
- gatherPolicy?: RTCIceGatherPolicy;
- iceservers?: RTCIceServer[];
-}
-
-interface RTCIceParameters {
- password?: string;
- usernameFragment?: string;
+ transportId: string;
}
interface RTCIceServer {
@@ -1321,18 +1276,13 @@ interface RTCIceServer {
username?: string;
}
-interface RTCIdentityProviderOptions {
- peerIdentity?: string;
- protocol?: string;
- usernameHint?: string;
-}
-
-interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
- bytesReceived?: number;
- fractionLost?: number;
- jitter?: number;
- packetsLost?: number;
- packetsReceived?: number;
+interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
+ firCount?: number;
+ framesDecoded?: number;
+ nackCount?: number;
+ pliCount?: number;
+ qpSum?: number;
+ remoteId?: string;
}
interface RTCLocalSessionDescriptionInit {
@@ -1340,23 +1290,6 @@ interface RTCLocalSessionDescriptionInit {
type?: RTCSdpType;
}
-interface RTCMediaStreamTrackStats extends RTCStats {
- audioLevel?: number;
- echoReturnLoss?: number;
- echoReturnLossEnhancement?: number;
- frameHeight?: number;
- frameWidth?: number;
- framesCorrupted?: number;
- framesDecoded?: number;
- framesDropped?: number;
- framesPerSecond?: number;
- framesReceived?: number;
- framesSent?: number;
- remoteSource?: boolean;
- ssrcIds?: string[];
- trackIdentifier?: string;
-}
-
interface RTCOfferAnswerOptions {
}
@@ -1366,18 +1299,20 @@ interface RTCOfferOptions extends RTCOfferAnswerOptions {
offerToReceiveVideo?: boolean;
}
-interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
- bytesSent?: number;
- packetsSent?: number;
- roundTripTime?: number;
- targetBitrate?: number;
+interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
+ firCount?: number;
+ framesEncoded?: number;
+ nackCount?: number;
+ pliCount?: number;
+ qpSum?: number;
+ remoteId?: string;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
+ errorText?: string;
port?: number | null;
- statusText?: string;
url?: string;
}
@@ -1386,23 +1321,11 @@ interface RTCPeerConnectionIceEventInit extends EventInit {
url?: string | null;
}
-interface RTCRTPStreamStats extends RTCStats {
- associateStatsId?: string;
- codecId?: string;
- firCount?: number;
- isRemote?: boolean;
- mediaTrackId?: string;
- mediaType?: string;
- nackCount?: number;
- pliCount?: number;
- sliCount?: number;
- ssrc?: string;
- transportId?: string;
-}
-
-interface RTCRtcpFeedback {
- parameter?: string;
- type?: string;
+interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
+ jitter?: number;
+ packetsDiscarded?: number;
+ packetsLost?: number;
+ packetsReceived?: number;
}
interface RTCRtcpParameters {
@@ -1438,27 +1361,16 @@ interface RTCRtpContributingSource {
audioLevel?: number;
rtpTimestamp: number;
source: number;
- timestamp: number;
+ timestamp: DOMHighResTimeStamp;
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
maxBitrate?: number;
+ priority?: RTCPriorityType;
scaleResolutionDownBy?: number;
}
-interface RTCRtpFecParameters {
- mechanism?: string;
- ssrc?: number;
-}
-
-interface RTCRtpHeaderExtension {
- kind?: string;
- preferredEncrypt?: boolean;
- preferredId?: number;
- uri?: string;
-}
-
interface RTCRtpHeaderExtensionCapability {
uri?: string;
}
@@ -1478,17 +1390,20 @@ interface RTCRtpParameters {
interface RTCRtpReceiveParameters extends RTCRtpParameters {
}
-interface RTCRtpRtxParameters {
- ssrc?: number;
-}
-
interface RTCRtpSendParameters extends RTCRtpParameters {
+ degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
transactionId: string;
}
+interface RTCRtpStreamStats extends RTCStats {
+ codecId?: string;
+ kind: string;
+ ssrc: number;
+ transportId?: string;
+}
+
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
- voiceActivityFlag?: boolean;
}
interface RTCRtpTransceiverInit {
@@ -1497,10 +1412,9 @@ interface RTCRtpTransceiverInit {
streams?: MediaStream[];
}
-interface RTCRtpUnhandled {
- muxId?: string;
- payloadType?: number;
- ssrc?: number;
+interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
+ bytesSent?: number;
+ packetsSent?: number;
}
interface RTCSessionDescriptionInit {
@@ -1508,33 +1422,10 @@ interface RTCSessionDescriptionInit {
type: RTCSdpType;
}
-interface RTCSrtpKeyParam {
- keyMethod?: string;
- keySalt?: string;
- lifetime?: string;
- mkiLength?: number;
- mkiValue?: number;
-}
-
-interface RTCSrtpSdesParameters {
- cryptoSuite?: string;
- keyParams?: RTCSrtpKeyParam[];
- sessionParams?: string[];
- tag?: number;
-}
-
-interface RTCSsrcRange {
- max?: number;
- min?: number;
-}
-
interface RTCStats {
- id?: string;
- timestamp?: number;
- type?: RTCStatsType;
-}
-
-interface RTCStatsReport {
+ id: string;
+ timestamp: DOMHighResTimeStamp;
+ type: RTCStatsType;
}
interface RTCTrackEventInit extends EventInit {
@@ -1548,17 +1439,12 @@ interface RTCTransportStats extends RTCStats {
bytesReceived?: number;
bytesSent?: number;
dtlsCipher?: string;
- dtlsState?: RTCDtlsTransportState;
- iceRole?: RTCIceRole;
+ dtlsState: RTCDtlsTransportState;
localCertificateId?: string;
- packetsReceived?: number;
- packetsSent?: number;
remoteCertificateId?: string;
rtcpTransportStatsId?: string;
- selectedCandidatePairChanges?: number;
selectedCandidatePairId?: string;
srtpCipher?: string;
- tlsGroup?: string;
tlsVersion?: string;
}
@@ -1676,7 +1562,7 @@ interface RsaKeyGenParams extends Algorithm {
}
interface RsaOaepParams extends Algorithm {
- label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
+ label?: BufferSource;
}
interface RsaOtherPrimesInfo {
@@ -1713,37 +1599,31 @@ interface ScrollToOptions extends ScrollOptions {
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
- documentURI?: string;
- effectiveDirective?: string;
+ disposition: SecurityPolicyViolationEventDisposition;
+ documentURI: string;
+ effectiveDirective: string;
lineNumber?: number;
- originalPolicy?: string;
+ originalPolicy: string;
referrer?: string;
+ sample?: string;
sourceFile?: string;
- statusCode?: number;
- violatedDirective?: string;
+ statusCode: number;
+ violatedDirective: string;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
+ slotAssignment?: SlotAssignmentMode;
}
interface ShareData {
+ files?: File[];
text?: string;
title?: string;
url?: string;
}
-interface SpeechRecognitionErrorEventInit extends EventInit {
- error: SpeechRecognitionErrorCode;
- message?: string;
-}
-
-interface SpeechRecognitionEventInit extends EventInit {
- resultIndex?: number;
- results: SpeechRecognitionResultList;
-}
-
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
@@ -1780,16 +1660,6 @@ interface StorageEventInit extends EventInit {
url?: string;
}
-interface StoreExceptionsInformation extends ExceptionInformation {
- detailURI?: string | null;
- explanationString?: string | null;
- siteName?: string | null;
-}
-
-interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {
- arrayOfDomainStrings?: string[];
-}
-
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
@@ -1814,6 +1684,10 @@ interface StreamPipeOptions {
signal?: AbortSignal;
}
+interface SubmitEventInit extends EventInit {
+ submitter?: HTMLElement | null;
+}
+
interface TextDecodeOptions {
stream?: boolean;
}
@@ -1873,6 +1747,8 @@ interface TransitionEventInit extends EventInit {
interface UIEventInit extends EventInit {
detail?: number;
view?: Window | null;
+ /** @deprecated */
+ which?: number;
}
interface ULongRange {
@@ -1895,21 +1771,16 @@ interface UnderlyingSource<R = any> {
type?: undefined;
}
-interface VRDisplayEventInit extends EventInit {
- display: VRDisplay;
- reason?: VRDisplayEventReason;
-}
-
-interface VRLayer {
- leftBounds?: number[] | Float32Array | null;
- rightBounds?: number[] | Float32Array | null;
- source?: HTMLCanvasElement | null;
-}
-
-interface VRStageParameters {
- sittingToStandingTransform?: Float32Array;
- sizeX?: number;
- sizeY?: number;
+interface VideoConfiguration {
+ bitrate: number;
+ colorGamut?: ColorGamut;
+ contentType: string;
+ framerate: number;
+ hdrMetadataType?: HdrMetadataType;
+ height: number;
+ scalabilityMode?: string;
+ transferFunction?: TransferFunction;
+ width: number;
}
interface WaveShaperOptions extends AudioNodeOptions {
@@ -1940,6 +1811,10 @@ interface WheelEventInit extends MouseEventInit {
deltaZ?: number;
}
+interface WindowPostMessageOptions extends PostMessageOptions {
+ targetOrigin?: string;
+}
+
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
@@ -1950,9 +1825,26 @@ interface WorkletOptions {
credentials?: RequestCredentials;
}
-interface EventListener {
- (evt: Event): void;
-}
+type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
+
+declare var NodeFilter: {
+ readonly FILTER_ACCEPT: number;
+ readonly FILTER_REJECT: number;
+ readonly FILTER_SKIP: number;
+ readonly SHOW_ALL: number;
+ readonly SHOW_ATTRIBUTE: number;
+ readonly SHOW_CDATA_SECTION: number;
+ readonly SHOW_COMMENT: number;
+ readonly SHOW_DOCUMENT: number;
+ readonly SHOW_DOCUMENT_FRAGMENT: number;
+ readonly SHOW_DOCUMENT_TYPE: number;
+ readonly SHOW_ELEMENT: number;
+ readonly SHOW_ENTITY: number;
+ readonly SHOW_ENTITY_REFERENCE: number;
+ readonly SHOW_NOTATION: number;
+ readonly SHOW_PROCESSING_INSTRUCTION: number;
+ readonly SHOW_TEXT: number;
+};
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
@@ -1964,6 +1856,45 @@ interface ANGLE_instanced_arrays {
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
}
+interface ARIAMixin {
+ ariaAtomic: string;
+ ariaAutoComplete: string;
+ ariaBusy: string;
+ ariaChecked: string;
+ ariaColCount: string;
+ ariaColIndex: string;
+ ariaColSpan: string;
+ ariaCurrent: string;
+ ariaDisabled: string;
+ ariaExpanded: string;
+ ariaHasPopup: string;
+ ariaHidden: string;
+ ariaKeyShortcuts: string;
+ ariaLabel: string;
+ ariaLevel: string;
+ ariaLive: string;
+ ariaModal: string;
+ ariaMultiLine: string;
+ ariaMultiSelectable: string;
+ ariaOrientation: string;
+ ariaPlaceholder: string;
+ ariaPosInSet: string;
+ ariaPressed: string;
+ ariaReadOnly: string;
+ ariaRequired: string;
+ ariaRoleDescription: string;
+ ariaRowCount: string;
+ ariaRowIndex: string;
+ ariaRowSpan: string;
+ ariaSelected: string;
+ ariaSetSize: string;
+ ariaSort: string;
+ ariaValueMax: string;
+ ariaValueMin: string;
+ ariaValueNow: string;
+ ariaValueText: string;
+}
+
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/**
@@ -2043,14 +1974,6 @@ interface AbstractWorker {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
-interface AesCfbParams extends Algorithm {
- iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
-}
-
-interface AesCmacParams extends Algorithm {
- length: number;
-}
-
/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
interface AnalyserNode extends AudioNode {
fftSize: number;
@@ -2071,12 +1994,13 @@ declare var AnalyserNode: {
interface Animatable {
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
- getAnimations(): Animation[];
+ getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
+ "remove": Event;
}
interface Animation extends EventTarget {
@@ -2086,15 +2010,19 @@ interface Animation extends EventTarget {
id: string;
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
+ onremove: ((this: Animation, ev: Event) => any) | null;
readonly pending: boolean;
readonly playState: AnimationPlayState;
playbackRate: number;
readonly ready: Promise<Animation>;
+ readonly replaceState: AnimationReplaceState;
startTime: number | null;
timeline: AnimationTimeline | null;
cancel(): void;
+ commitStyles(): void;
finish(): void;
pause(): void;
+ persist(): void;
play(): void;
reverse(): void;
updatePlaybackRate(playbackRate: number): void;
@@ -2156,65 +2084,6 @@ declare var AnimationTimeline: {
new(): AnimationTimeline;
};
-interface ApplicationCacheEventMap {
- "cached": Event;
- "checking": Event;
- "downloading": Event;
- "error": Event;
- "noupdate": Event;
- "obsolete": Event;
- "progress": ProgressEvent<ApplicationCache>;
- "updateready": Event;
-}
-
-interface ApplicationCache extends EventTarget {
- /** @deprecated */
- oncached: ((this: ApplicationCache, ev: Event) => any) | null;
- /** @deprecated */
- onchecking: ((this: ApplicationCache, ev: Event) => any) | null;
- /** @deprecated */
- ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;
- /** @deprecated */
- onerror: ((this: ApplicationCache, ev: Event) => any) | null;
- /** @deprecated */
- onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;
- /** @deprecated */
- onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;
- /** @deprecated */
- onprogress: ((this: ApplicationCache, ev: ProgressEvent<ApplicationCache>) => any) | null;
- /** @deprecated */
- onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;
- /** @deprecated */
- readonly status: number;
- /** @deprecated */
- abort(): void;
- /** @deprecated */
- swapCache(): void;
- /** @deprecated */
- update(): void;
- readonly CHECKING: number;
- readonly DOWNLOADING: number;
- readonly IDLE: number;
- readonly OBSOLETE: number;
- readonly UNCACHED: number;
- readonly UPDATEREADY: number;
- addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var ApplicationCache: {
- prototype: ApplicationCache;
- new(): ApplicationCache;
- readonly CHECKING: number;
- readonly DOWNLOADING: number;
- readonly IDLE: number;
- readonly OBSOLETE: number;
- readonly UNCACHED: number;
- readonly UPDATEREADY: number;
-};
-
/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
interface Attr extends Node {
readonly localName: string;
@@ -2271,12 +2140,10 @@ declare var AudioBufferSourceNode: {
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
interface AudioContext extends BaseAudioContext {
readonly baseLatency: number;
- readonly outputLatency: number;
close(): Promise<void>;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
- createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode;
getOutputTimestamp(): AudioTimestamp;
resume(): Promise<void>;
suspend(): Promise<void>;
@@ -2377,15 +2244,20 @@ declare var AudioParamMap: {
new(): AudioParamMap;
};
-/** The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
+/**
+ * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
*/
interface AudioProcessingEvent extends Event {
+ /** @deprecated */
readonly inputBuffer: AudioBuffer;
+ /** @deprecated */
readonly outputBuffer: AudioBuffer;
+ /** @deprecated */
readonly playbackTime: number;
}
+/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
@@ -2502,6 +2374,7 @@ interface BaseAudioContext extends EventTarget {
createOscillator(): OscillatorNode;
createPanner(): PannerNode;
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
+ /** @deprecated */
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
createStereoPanner(): StereoPannerNode;
createWaveShaper(): WaveShaperNode;
@@ -2527,28 +2400,6 @@ declare var BeforeUnloadEvent: {
new(): BeforeUnloadEvent;
};
-interface BhxBrowser {
- readonly lastError: DOMException;
- checkMatchesGlobExpression(pattern: string, value: string): boolean;
- checkMatchesUriExpression(pattern: string, value: string): boolean;
- clearLastError(): void;
- currentWindowId(): number;
- fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
- genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;
- genericSynchronousFunction(functionId: number, parameters?: string): string;
- getExtensionId(): string;
- getThisAddress(): any;
- registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
- registerGenericListenerHandler(eventHandler: Function): void;
- setLastError(parameters: string): void;
- webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;
-}
-
-declare var BhxBrowser: {
- prototype: BhxBrowser;
- new(): BhxBrowser;
-};
-
/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
interface BiquadFilterNode extends AudioNode {
readonly Q: AudioParam;
@@ -2579,6 +2430,16 @@ declare var Blob: {
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
+interface BlobEvent extends Event {
+ readonly data: Blob;
+ readonly timecode: DOMHighResTimeStamp;
+}
+
+declare var BlobEvent: {
+ prototype: BlobEvent;
+ new(type: string, eventInitDict: BlobEventInit): BlobEvent;
+};
+
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
@@ -2640,6 +2501,19 @@ declare var CDATASection: {
new(): CDATASection;
};
+interface CSSAnimation extends Animation {
+ readonly animationName: string;
+ addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var CSSAnimation: {
+ prototype: CSSAnimation;
+ new(): CSSAnimation;
+};
+
/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
interface CSSConditionRule extends CSSGroupingRule {
conditionText: string;
@@ -2650,6 +2524,25 @@ declare var CSSConditionRule: {
new(): CSSConditionRule;
};
+interface CSSCounterStyleRule extends CSSRule {
+ additiveSymbols: string;
+ fallback: string;
+ name: string;
+ negative: string;
+ pad: string;
+ prefix: string;
+ range: string;
+ speakAs: string;
+ suffix: string;
+ symbols: string;
+ system: string;
+}
+
+declare var CSSCounterStyleRule: {
+ prototype: CSSCounterStyleRule;
+ new(): CSSCounterStyleRule;
+};
+
interface CSSFontFaceRule extends CSSRule {
readonly style: CSSStyleDeclaration;
}
@@ -2744,6 +2637,7 @@ interface CSSRule {
cssText: string;
readonly parentRule: CSSRule | null;
readonly parentStyleSheet: CSSStyleSheet | null;
+ /** @deprecated */
readonly type: number;
readonly CHARSET_RULE: number;
readonly FONT_FACE_RULE: number;
@@ -2800,9 +2694,12 @@ interface CSSStyleDeclaration {
animationName: string;
animationPlayState: string;
animationTimingFunction: string;
+ appearance: string;
+ aspectRatio: string;
backfaceVisibility: string;
background: string;
backgroundAttachment: string;
+ backgroundBlendMode: string;
backgroundClip: string;
backgroundColor: string;
backgroundImage: string;
@@ -2815,6 +2712,8 @@ interface CSSStyleDeclaration {
baselineShift: string;
blockSize: string;
border: string;
+ borderBlock: string;
+ borderBlockColor: string;
borderBlockEnd: string;
borderBlockEndColor: string;
borderBlockEndStyle: string;
@@ -2823,6 +2722,8 @@ interface CSSStyleDeclaration {
borderBlockStartColor: string;
borderBlockStartStyle: string;
borderBlockStartWidth: string;
+ borderBlockStyle: string;
+ borderBlockWidth: string;
borderBottom: string;
borderBottomColor: string;
borderBottomLeftRadius: string;
@@ -2831,12 +2732,16 @@ interface CSSStyleDeclaration {
borderBottomWidth: string;
borderCollapse: string;
borderColor: string;
+ borderEndEndRadius: string;
+ borderEndStartRadius: string;
borderImage: string;
borderImageOutset: string;
borderImageRepeat: string;
borderImageSlice: string;
borderImageSource: string;
borderImageWidth: string;
+ borderInline: string;
+ borderInlineColor: string;
borderInlineEnd: string;
borderInlineEndColor: string;
borderInlineEndStyle: string;
@@ -2845,6 +2750,8 @@ interface CSSStyleDeclaration {
borderInlineStartColor: string;
borderInlineStartStyle: string;
borderInlineStartWidth: string;
+ borderInlineStyle: string;
+ borderInlineWidth: string;
borderLeft: string;
borderLeftColor: string;
borderLeftStyle: string;
@@ -2855,6 +2762,8 @@ interface CSSStyleDeclaration {
borderRightStyle: string;
borderRightWidth: string;
borderSpacing: string;
+ borderStartEndRadius: string;
+ borderStartStartRadius: string;
borderStyle: string;
borderTop: string;
borderTopColor: string;
@@ -2872,12 +2781,14 @@ interface CSSStyleDeclaration {
captionSide: string;
caretColor: string;
clear: string;
+ /** @deprecated */
clip: string;
clipPath: string;
clipRule: string;
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
+ colorScheme: string;
columnCount: string;
columnFill: string;
columnGap: string;
@@ -2888,9 +2799,11 @@ interface CSSStyleDeclaration {
columnSpan: string;
columnWidth: string;
columns: string;
+ contain: string;
content: string;
counterIncrement: string;
counterReset: string;
+ counterSet: string;
cssFloat: string;
cssText: string;
cursor: string;
@@ -2916,20 +2829,23 @@ interface CSSStyleDeclaration {
fontFamily: string;
fontFeatureSettings: string;
fontKerning: string;
+ fontOpticalSizing: string;
fontSize: string;
fontSizeAdjust: string;
fontStretch: string;
fontStyle: string;
fontSynthesis: string;
fontVariant: string;
+ /** @deprecated */
+ fontVariantAlternates: string;
fontVariantCaps: string;
fontVariantEastAsian: string;
fontVariantLigatures: string;
fontVariantNumeric: string;
fontVariantPosition: string;
+ fontVariationSettings: string;
fontWeight: string;
gap: string;
- glyphOrientationVertical: string;
grid: string;
gridArea: string;
gridAutoColumns: string;
@@ -2950,9 +2866,18 @@ interface CSSStyleDeclaration {
gridTemplateRows: string;
height: string;
hyphens: string;
+ /** @deprecated */
imageOrientation: string;
imageRendering: string;
inlineSize: string;
+ inset: string;
+ insetBlock: string;
+ insetBlockEnd: string;
+ insetBlockStart: string;
+ insetInline: string;
+ insetInlineEnd: string;
+ insetInlineStart: string;
+ isolation: string;
justifyContent: string;
justifyItems: string;
justifySelf: string;
@@ -2967,9 +2892,11 @@ interface CSSStyleDeclaration {
listStylePosition: string;
listStyleType: string;
margin: string;
+ marginBlock: string;
marginBlockEnd: string;
marginBlockStart: string;
marginBottom: string;
+ marginInline: string;
marginInlineEnd: string;
marginInlineStart: string;
marginLeft: string;
@@ -2980,11 +2907,6 @@ interface CSSStyleDeclaration {
markerMid: string;
markerStart: string;
mask: string;
- maskComposite: string;
- maskImage: string;
- maskPosition: string;
- maskRepeat: string;
- maskSize: string;
maskType: string;
maxBlockSize: string;
maxHeight: string;
@@ -2994,8 +2916,14 @@ interface CSSStyleDeclaration {
minHeight: string;
minInlineSize: string;
minWidth: string;
+ mixBlendMode: string;
objectFit: string;
objectPosition: string;
+ offset: string;
+ offsetAnchor: string;
+ offsetDistance: string;
+ offsetPath: string;
+ offsetRotate: string;
opacity: string;
order: string;
orphans: string;
@@ -3015,9 +2943,11 @@ interface CSSStyleDeclaration {
overscrollBehaviorX: string;
overscrollBehaviorY: string;
padding: string;
+ paddingBlock: string;
paddingBlockEnd: string;
paddingBlockStart: string;
paddingBottom: string;
+ paddingInline: string;
paddingInlineEnd: string;
paddingInlineStart: string;
paddingLeft: string;
@@ -3040,10 +2970,37 @@ interface CSSStyleDeclaration {
right: string;
rotate: string;
rowGap: string;
- rubyAlign: string;
rubyPosition: string;
scale: string;
scrollBehavior: string;
+ scrollMargin: string;
+ scrollMarginBlock: string;
+ scrollMarginBlockEnd: string;
+ scrollMarginBlockStart: string;
+ scrollMarginBottom: string;
+ scrollMarginInline: string;
+ scrollMarginInlineEnd: string;
+ scrollMarginInlineStart: string;
+ scrollMarginLeft: string;
+ scrollMarginRight: string;
+ scrollMarginTop: string;
+ scrollPadding: string;
+ scrollPaddingBlock: string;
+ scrollPaddingBlockEnd: string;
+ scrollPaddingBlockStart: string;
+ scrollPaddingBottom: string;
+ scrollPaddingInline: string;
+ scrollPaddingInlineEnd: string;
+ scrollPaddingInlineStart: string;
+ scrollPaddingLeft: string;
+ scrollPaddingRight: string;
+ scrollPaddingTop: string;
+ scrollSnapAlign: string;
+ scrollSnapStop: string;
+ scrollSnapType: string;
+ shapeImageThreshold: string;
+ shapeMargin: string;
+ shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
@@ -3064,18 +3021,20 @@ interface CSSStyleDeclaration {
textDecoration: string;
textDecorationColor: string;
textDecorationLine: string;
+ textDecorationSkipInk: string;
textDecorationStyle: string;
+ textDecorationThickness: string;
textEmphasis: string;
textEmphasisColor: string;
textEmphasisPosition: string;
textEmphasisStyle: string;
textIndent: string;
- textJustify: string;
textOrientation: string;
textOverflow: string;
textRendering: string;
textShadow: string;
textTransform: string;
+ textUnderlineOffset: string;
textUnderlinePosition: string;
top: string;
touchAction: string;
@@ -3093,49 +3052,49 @@ interface CSSStyleDeclaration {
userSelect: string;
verticalAlign: string;
visibility: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `alignContent`. */
webkitAlignContent: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `alignItems`. */
webkitAlignItems: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `alignSelf`. */
webkitAlignSelf: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animation`. */
webkitAnimation: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationDelay`. */
webkitAnimationDelay: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationDirection`. */
webkitAnimationDirection: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationDuration`. */
webkitAnimationDuration: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationFillMode`. */
webkitAnimationFillMode: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationIterationCount`. */
webkitAnimationIterationCount: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationName`. */
webkitAnimationName: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationPlayState`. */
webkitAnimationPlayState: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `animationTimingFunction`. */
webkitAnimationTimingFunction: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `appearance`. */
webkitAppearance: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `backfaceVisibility`. */
webkitBackfaceVisibility: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `backgroundClip`. */
webkitBackgroundClip: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `backgroundOrigin`. */
webkitBackgroundOrigin: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `backgroundSize`. */
webkitBackgroundSize: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `borderBottomLeftRadius`. */
webkitBorderBottomLeftRadius: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `borderBottomRightRadius`. */
webkitBorderBottomRightRadius: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `borderRadius`. */
webkitBorderRadius: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `borderTopLeftRadius`. */
webkitBorderTopLeftRadius: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `borderTopRightRadius`. */
webkitBorderTopRightRadius: string;
/** @deprecated */
webkitBoxAlign: string;
@@ -3147,91 +3106,83 @@ interface CSSStyleDeclaration {
webkitBoxOrient: string;
/** @deprecated */
webkitBoxPack: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `boxShadow`. */
webkitBoxShadow: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `boxSizing`. */
webkitBoxSizing: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `filter`. */
webkitFilter: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `flex`. */
webkitFlex: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `flexBasis`. */
webkitFlexBasis: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `flexDirection`. */
webkitFlexDirection: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `flexFlow`. */
webkitFlexFlow: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `flexGrow`. */
webkitFlexGrow: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `flexShrink`. */
webkitFlexShrink: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `flexWrap`. */
webkitFlexWrap: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `justifyContent`. */
webkitJustifyContent: string;
webkitLineClamp: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `mask`. */
webkitMask: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskBorder`. */
webkitMaskBoxImage: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskBorderOutset`. */
webkitMaskBoxImageOutset: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskBorderRepeat`. */
webkitMaskBoxImageRepeat: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskBorderSlice`. */
webkitMaskBoxImageSlice: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskBorderSource`. */
webkitMaskBoxImageSource: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskBorderWidth`. */
webkitMaskBoxImageWidth: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskClip`. */
webkitMaskClip: string;
- /** @deprecated */
webkitMaskComposite: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskImage`. */
webkitMaskImage: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskOrigin`. */
webkitMaskOrigin: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskPosition`. */
webkitMaskPosition: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskRepeat`. */
webkitMaskRepeat: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `maskSize`. */
webkitMaskSize: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `order`. */
webkitOrder: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `perspective`. */
webkitPerspective: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `perspectiveOrigin`. */
webkitPerspectiveOrigin: string;
- webkitTapHighlightColor: string;
- /** @deprecated */
webkitTextFillColor: string;
- /** @deprecated */
- webkitTextSizeAdjust: string;
- /** @deprecated */
webkitTextStroke: string;
- /** @deprecated */
webkitTextStrokeColor: string;
- /** @deprecated */
webkitTextStrokeWidth: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transform`. */
webkitTransform: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transformOrigin`. */
webkitTransformOrigin: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transformStyle`. */
webkitTransformStyle: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transition`. */
webkitTransition: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transitionDelay`. */
webkitTransitionDelay: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transitionDuration`. */
webkitTransitionDuration: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transitionProperty`. */
webkitTransitionProperty: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `transitionTimingFunction`. */
webkitTransitionTimingFunction: string;
- /** @deprecated */
+ /** @deprecated This is a legacy alias of `userSelect`. */
webkitUserSelect: string;
whiteSpace: string;
widows: string;
@@ -3239,11 +3190,10 @@ interface CSSStyleDeclaration {
willChange: string;
wordBreak: string;
wordSpacing: string;
+ /** @deprecated */
wordWrap: string;
writingMode: string;
zIndex: string;
- /** @deprecated */
- zoom: string;
getPropertyPriority(property: string): string;
getPropertyValue(property: string): string;
item(index: number): string;
@@ -3272,16 +3222,19 @@ declare var CSSStyleRule: {
interface CSSStyleSheet extends StyleSheet {
readonly cssRules: CSSRuleList;
readonly ownerRule: CSSRule | null;
+ /** @deprecated */
readonly rules: CSSRuleList;
+ /** @deprecated */
addRule(selector?: string, style?: string, index?: number): number;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
+ /** @deprecated */
removeRule(index?: number): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
- new(): CSSStyleSheet;
+ new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
@@ -3293,6 +3246,19 @@ declare var CSSSupportsRule: {
new(): CSSSupportsRule;
};
+interface CSSTransition extends Animation {
+ readonly transitionProperty: string;
+ addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var CSSTransition: {
+ prototype: CSSTransition;
+ new(): CSSTransition;
+};
+
/** 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. */
interface Cache {
add(request: RequestInfo): Promise<void>;
@@ -3376,9 +3342,9 @@ declare var CanvasGradient: {
};
interface CanvasImageData {
- createImageData(sw: number, sh: number): ImageData;
+ createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
- getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
+ getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
@@ -3389,11 +3355,11 @@ interface CanvasImageSmoothing {
}
interface CanvasPath {
- arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
+ arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
- ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
+ ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
@@ -3432,6 +3398,7 @@ interface CanvasRect {
/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects. */
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
readonly canvas: HTMLCanvasElement;
+ getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
@@ -3478,21 +3445,8 @@ interface CanvasTransform {
interface CanvasUserInterface {
drawFocusIfNeeded(element: Element): void;
drawFocusIfNeeded(path: Path2D, element: Element): void;
- scrollPathIntoView(): void;
- scrollPathIntoView(path: Path2D): void;
}
-interface CaretPosition {
- readonly offset: number;
- readonly offsetNode: Node;
- getClientRect(): DOMRect | null;
-}
-
-declare var CaretPosition: {
- prototype: CaretPosition;
- new(): CaretPosition;
-};
-
/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
interface ChannelMergerNode extends AudioNode {
}
@@ -3553,33 +3507,14 @@ interface ChildNode extends Node {
replaceWith(...nodes: (Node | string)[]): void;
}
-interface ClientRect {
- bottom: number;
- readonly height: number;
- left: number;
- right: number;
- top: number;
- readonly width: number;
-}
-
-declare var ClientRect: {
- prototype: ClientRect;
- new(): ClientRect;
-};
-
-interface ClientRectList {
- readonly length: number;
- item(index: number): ClientRect;
- [index: number]: ClientRect;
+/** @deprecated */
+interface ClientRect extends DOMRect {
}
-declare var ClientRectList: {
- prototype: ClientRectList;
- new(): ClientRectList;
-};
-
interface Clipboard extends EventTarget {
+ read(): Promise<ClipboardItems>;
readText(): Promise<string>;
+ write(data: ClipboardItems): Promise<void>;
writeText(data: string): Promise<void>;
}
@@ -3598,6 +3533,16 @@ declare var ClipboardEvent: {
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
+interface ClipboardItem {
+ readonly types: ReadonlyArray<string>;
+ getType(type: string): Promise<Blob>;
+}
+
+declare var ClipboardItem: {
+ prototype: ClipboardItem;
+ new(items: Record<string, ClipboardItemData>, options?: ClipboardItemOptions): ClipboardItem;
+};
+
/** 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. */
interface CloseEvent extends Event {
/**
@@ -3631,6 +3576,8 @@ declare var Comment: {
/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */
interface CompositionEvent extends UIEvent {
readonly data: string;
+ /** @deprecated */
+ initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
@@ -3638,15 +3585,6 @@ declare var CompositionEvent: {
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
-interface ConcatParams extends Algorithm {
- algorithmId: Uint8Array;
- hash?: string | Algorithm;
- partyUInfo: Uint8Array;
- partyVInfo: Uint8Array;
- privateInfo?: Uint8Array;
- publicInfo?: Uint8Array;
-}
-
interface ConstantSourceNode extends AudioScheduledSourceNode {
readonly offset: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -3707,7 +3645,7 @@ declare var CredentialsContainer: {
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
readonly subtle: SubtleCrypto;
- getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T;
+ getRandomValues<T extends ArrayBufferView | null>(array: T): T;
}
declare var Crypto: {
@@ -3728,22 +3666,11 @@ declare var CryptoKey: {
new(): CryptoKey;
};
-/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm. */
-interface CryptoKeyPair {
- privateKey: CryptoKey;
- publicKey: CryptoKey;
-}
-
-declare var CryptoKeyPair: {
- prototype: CryptoKeyPair;
- new(): CryptoKeyPair;
-};
-
interface CustomElementRegistry {
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
- get(name: string): any;
+ get(name: string): CustomElementConstructor | undefined;
upgrade(root: Node): void;
- whenDefined(name: string): Promise<void>;
+ whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
@@ -3756,23 +3683,13 @@ interface CustomEvent<T = any> extends Event {
* Returns any custom data event was created with. Typically used for synthetic events.
*/
readonly detail: T;
- initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;
+ /** @deprecated */
+ initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
- new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
-};
-
-/** An error object that contains an error name. */
-interface DOMError {
- readonly name: string;
- toString(): string;
-}
-
-declare var DOMError: {
- prototype: DOMError;
- new(): DOMError;
+ new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
@@ -4068,15 +3985,6 @@ declare var DOMRectReadOnly: {
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
-interface DOMSettableTokenList extends DOMTokenList {
- value: string;
-}
-
-declare var DOMSettableTokenList: {
- prototype: DOMSettableTokenList;
- new(): DOMSettableTokenList;
-};
-
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/**
@@ -4155,7 +4063,7 @@ interface DOMTokenList {
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
- replace(oldToken: string, newToken: string): void;
+ replace(token: string, newToken: string): boolean;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
*
@@ -4181,19 +4089,6 @@ declare var DOMTokenList: {
new(): DOMTokenList;
};
-interface DataCue extends TextTrackCue {
- data: ArrayBuffer;
- addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var DataCue: {
- prototype: DataCue;
- new(): DataCue;
-};
-
/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */
interface DataTransfer {
/**
@@ -4265,7 +4160,7 @@ interface DataTransferItem {
* Invokes the callback with the string data as the argument, if the drag data item kind is text.
*/
getAsString(callback: FunctionStringCallback | null): void;
- webkitGetAsEntry(): any;
+ webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
@@ -4288,12 +4183,11 @@ interface DataTransferItemList {
* Removes all the entries in the drag data store.
*/
clear(): void;
- item(index: number): DataTransferItem;
/**
* Removes the indexth entry in the drag data store.
*/
remove(index: number): void;
- [name: number]: DataTransferItem;
+ [index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
@@ -4301,19 +4195,6 @@ declare var DataTransferItemList: {
new(): DataTransferItemList;
};
-interface DeferredPermissionRequest {
- readonly id: number;
- readonly type: MSWebViewPermissionType;
- readonly uri: string;
- allow(): void;
- deny(): void;
-}
-
-declare var DeferredPermissionRequest: {
- prototype: DeferredPermissionRequest;
- new(): DeferredPermissionRequest;
-};
-
/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */
interface DelayNode extends AudioNode {
readonly delayTime: AudioParam;
@@ -4324,18 +4205,6 @@ declare var DelayNode: {
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};
-/** Provides information about the amount of acceleration the device is experiencing along all three axes. */
-interface DeviceAcceleration {
- readonly x: number | null;
- readonly y: number | null;
- readonly z: number | null;
-}
-
-declare var DeviceAcceleration: {
- prototype: DeviceAcceleration;
- new(): DeviceAcceleration;
-};
-
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
@@ -4347,7 +4216,6 @@ interface DeviceMotionEvent extends Event {
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
- requestPermission(): Promise<PermissionState>;
};
interface DeviceMotionEventAcceleration {
@@ -4373,41 +4241,9 @@ interface DeviceOrientationEvent extends Event {
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
- requestPermission(): Promise<PermissionState>;
};
-/** Provides information about the rate at which the device is rotating around all three axes. */
-interface DeviceRotationRate {
- readonly alpha: number | null;
- readonly beta: number | null;
- readonly gamma: number | null;
-}
-
-declare var DeviceRotationRate: {
- prototype: DeviceRotationRate;
- new(): DeviceRotationRate;
-};
-
-interface DhImportKeyParams extends Algorithm {
- generator: Uint8Array;
- prime: Uint8Array;
-}
-
-interface DhKeyAlgorithm extends KeyAlgorithm {
- generator: Uint8Array;
- prime: Uint8Array;
-}
-
-interface DhKeyDeriveParams extends Algorithm {
- public: CryptoKey;
-}
-
-interface DhKeyGenParams extends Algorithm {
- generator: Uint8Array;
- prime: Uint8Array;
-}
-
-interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
+interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
@@ -4417,35 +4253,35 @@ interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndEleme
}
/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
-interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
+interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/**
* Sets or gets the URL for the current document.
*/
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
+ * @deprecated
*/
- /** @deprecated */
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
+ * @deprecated
*/
- /** @deprecated */
readonly all: HTMLAllCollection;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
+ * @deprecated
*/
- /** @deprecated */
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
+ * @deprecated
*/
- /** @deprecated */
- readonly applets: HTMLCollectionOf<HTMLAppletElement>;
+ readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
+ * @deprecated
*/
- /** @deprecated */
bgColor: string;
/**
* Specifies the beginning and end of the document body.
@@ -4457,6 +4293,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
+ * @deprecated This is a legacy alias of `characterSet`.
*/
readonly charset: string;
/**
@@ -4481,6 +4318,9 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
+ /**
+ * Returns the Window object of the active document.
+ */
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/**
* Sets or gets a value that indicates whether the document can be edited.
@@ -4512,8 +4352,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
+ * @deprecated
*/
- /** @deprecated */
fgColor: string;
/**
* Retrieves a collection, in source order, of all form objects in the document.
@@ -4540,6 +4380,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
readonly implementation: DOMImplementation;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
+ * @deprecated This is a legacy alias of `characterSet`.
*/
readonly inputEncoding: string;
/**
@@ -4548,8 +4389,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
+ * @deprecated
*/
- /** @deprecated */
linkColor: string;
/**
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
@@ -4558,7 +4399,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
/**
* Contains information about the current URL.
*/
- location: Location;
+ get location(): Location;
+ set location(href: string | Location);
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
@@ -4570,6 +4412,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
onreadystatechange: ((this: Document, ev: Event) => any) | null;
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
+ readonly pictureInPictureEnabled: boolean;
/**
* Return an HTMLCollection of the embed elements in the Document.
*/
@@ -4582,6 +4425,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
* Gets the URL of the location that referred the user to the current page.
*/
readonly referrer: string;
+ /** @deprecated */
+ readonly rootElement: SVGSVGElement | null;
/**
* Retrieves a collection of all script objects in the document.
*/
@@ -4595,20 +4440,19 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
readonly visibilityState: VisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
+ * @deprecated
*/
- /** @deprecated */
vlinkColor: string;
/**
* Moves node from another document and returns it.
*
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*/
- adoptNode<T extends Node>(source: T): T;
+ adoptNode<T extends Node>(node: T): T;
/** @deprecated */
captureEvents(): void;
- caretPositionFromPoint(x: number, y: number): CaretPosition | null;
/** @deprecated */
- caretRangeFromPoint(x: number, y: number): Range;
+ caretRangeFromPoint(x: number, y: number): Range | null;
/** @deprecated */
clear(): void;
/**
@@ -4666,6 +4510,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
+ createEvent(eventInterface: "BlobEvent"): BlobEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
@@ -4674,21 +4519,18 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
- createEvent(eventInterface: "Event"): Event;
- createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
- createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;
+ createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
+ createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
- createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
- createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;
- createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;
+ createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
createEvent(eventInterface: "MessageEvent"): MessageEvent;
createEvent(eventInterface: "MouseEvent"): MouseEvent;
@@ -4696,42 +4538,28 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "MutationEvent"): MutationEvent;
createEvent(eventInterface: "MutationEvents"): MutationEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
- createEvent(eventInterface: "OverflowEvent"): OverflowEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
- createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
- createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
- createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
- createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
- createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;
- createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
- createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
- createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
- createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
- createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
- createEvent(eventInterface: "TextEvent"): TextEvent;
+ createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
- createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;
- createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
@@ -4740,7 +4568,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/**
@@ -4761,11 +4588,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
- * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
- /** @deprecated */
- createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter | null, entityReferenceExpansion?: boolean): TreeWalker;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
@@ -4778,14 +4602,15 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
+ * @deprecated
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/**
* Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
*/
exitFullscreen(): Promise<void>;
+ exitPictureInPicture(): Promise<void>;
exitPointerLock(): void;
- getAnimations(): Animation[];
/**
* Returns a reference to the first object with the specified value of the ID attribute.
* @param elementId String that specifies the ID value.
@@ -4818,7 +4643,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
- getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
*/
@@ -4827,12 +4652,13 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
* Gets a value indicating whether the object currently has focus.
*/
hasFocus(): boolean;
+ hasStorageAccess(): Promise<boolean>;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
*/
- importNode<T extends Node>(importedNode: T, deep: boolean): T;
+ importNode<T extends Node>(node: T, deep?: boolean): T;
/**
* Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
* @param url Specifies a MIME type for the document.
@@ -4840,10 +4666,12 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
*/
- open(url?: string, name?: string, features?: string, replace?: boolean): Document;
+ open(unused1?: string, unused2?: string): Document;
+ open(url: string | URL, name: string, features: string): WindowProxy | null;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
+ * @deprecated
*/
queryCommandEnabled(commandId: string): boolean;
/**
@@ -4854,11 +4682,13 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
+ * @deprecated
*/
queryCommandState(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
+ * @deprecated
*/
queryCommandSupported(commandId: string): boolean;
/**
@@ -4868,6 +4698,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
queryCommandValue(commandId: string): string;
/** @deprecated */
releaseEvents(): void;
+ requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
@@ -4905,82 +4736,6 @@ interface DocumentAndElementEventHandlers {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
-interface DocumentEvent {
- createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
- createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
- createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
- createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
- createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
- createEvent(eventInterface: "CloseEvent"): CloseEvent;
- createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
- createEvent(eventInterface: "CustomEvent"): CustomEvent;
- createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
- createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
- createEvent(eventInterface: "DragEvent"): DragEvent;
- createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
- createEvent(eventInterface: "Event"): Event;
- createEvent(eventInterface: "Events"): Event;
- createEvent(eventInterface: "FocusEvent"): FocusEvent;
- createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;
- createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
- createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
- createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
- createEvent(eventInterface: "InputEvent"): InputEvent;
- createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
- createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
- createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
- createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
- createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
- createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;
- createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;
- createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
- createEvent(eventInterface: "MessageEvent"): MessageEvent;
- createEvent(eventInterface: "MouseEvent"): MouseEvent;
- createEvent(eventInterface: "MouseEvents"): MouseEvent;
- createEvent(eventInterface: "MutationEvent"): MutationEvent;
- createEvent(eventInterface: "MutationEvents"): MutationEvent;
- createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
- createEvent(eventInterface: "OverflowEvent"): OverflowEvent;
- createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
- createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
- createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
- createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;
- createEvent(eventInterface: "PointerEvent"): PointerEvent;
- createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
- createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
- createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
- createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
- createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
- createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;
- createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
- createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;
- createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;
- createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;
- createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
- createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
- createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
- createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
- createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
- createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
- createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
- createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
- createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
- createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
- createEvent(eventInterface: "StorageEvent"): StorageEvent;
- createEvent(eventInterface: "TextEvent"): TextEvent;
- createEvent(eventInterface: "TouchEvent"): TouchEvent;
- createEvent(eventInterface: "TrackEvent"): TrackEvent;
- createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
- createEvent(eventInterface: "UIEvent"): UIEvent;
- createEvent(eventInterface: "UIEvents"): UIEvent;
- createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;
- createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;
- createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
- createEvent(eventInterface: "WheelEvent"): WheelEvent;
- createEvent(eventInterface: string): Event;
-}
-
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
@@ -4993,22 +4748,25 @@ declare var DocumentFragment: {
};
interface DocumentOrShadowRoot {
+ /**
+ * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
+ *
+ * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
+ *
+ * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
+ */
readonly activeElement: Element | null;
/**
* Returns document's fullscreen element.
*/
readonly fullscreenElement: Element | null;
+ readonly pictureInPictureElement: Element | null;
readonly pointerLockElement: Element | null;
/**
* Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
*/
readonly styleSheets: StyleSheetList;
- caretPositionFromPoint(x: number, y: number): CaretPosition | null;
- /** @deprecated */
- caretRangeFromPoint(x: number, y: number): Range;
- elementFromPoint(x: number, y: number): Element | null;
- elementsFromPoint(x: number, y: number): Element[];
- getSelection(): Selection | null;
+ getAnimations(): Animation[];
}
interface DocumentTimeline extends AnimationTimeline {
@@ -5065,6 +4823,19 @@ interface EXT_blend_minmax {
readonly MIN_EXT: GLenum;
}
+interface EXT_color_buffer_float {
+}
+
+interface EXT_color_buffer_half_float {
+ readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
+ readonly RGB16F_EXT: GLenum;
+ readonly RGBA16F_EXT: GLenum;
+ readonly UNSIGNED_NORMALIZED_EXT: GLenum;
+}
+
+interface EXT_float_blend {
+}
+
/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */
interface EXT_frag_depth {
}
@@ -5079,6 +4850,13 @@ interface EXT_sRGB {
interface EXT_shader_texture_lod {
}
+interface EXT_texture_compression_rgtc {
+ readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
+ readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
+ readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
+ readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
+}
+
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
@@ -5091,7 +4869,7 @@ interface ElementEventMap {
}
/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
-interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
+interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
readonly attributes: NamedNodeMap;
/**
* Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
@@ -5121,6 +4899,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
outerHTML: string;
readonly ownerDocument: Document;
+ readonly part: DOMTokenList;
/**
* Returns the namespace prefix.
*/
@@ -5150,7 +4929,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
*/
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
- closest<E extends Element = Element>(selector: string): E | null;
+ closest<E extends Element = Element>(selectors: string): E | null;
/**
* Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
*/
@@ -5176,7 +4955,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
- getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
*/
@@ -5190,14 +4969,13 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
*/
hasAttributes(): boolean;
hasPointerCapture(pointerId: number): boolean;
- insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null;
- insertAdjacentHTML(where: InsertPosition, html: string): void;
- insertAdjacentText(where: InsertPosition, text: string): void;
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
+ insertAdjacentText(where: InsertPosition, data: string): void;
/**
* Returns true if matching selectors against element's root yields element, and false otherwise.
*/
matches(selectors: string): boolean;
- msGetRegionContent(): any;
releasePointerCapture(pointerId: number): void;
/**
* Removes element's first attribute whose qualified name is qualifiedName.
@@ -5239,6 +5017,7 @@ interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTyp
* Returns true if qualifiedName is now present, and false otherwise.
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
+ /** @deprecated This is a legacy alias of `matches`. */
webkitMatchesSelector(selectors: string): boolean;
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -5307,6 +5086,7 @@ interface Event {
* Returns true if event was dispatched by the user agent, and false otherwise.
*/
readonly isTrusted: boolean;
+ /** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
@@ -5317,7 +5097,7 @@ interface Event {
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*/
- readonly timeStamp: number;
+ readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*/
@@ -5326,6 +5106,7 @@ interface Event {
* 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.
*/
composedPath(): EventTarget[];
+ /** @deprecated */
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* 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.
@@ -5354,8 +5135,12 @@ declare var Event: {
readonly NONE: number;
};
+interface EventListener {
+ (evt: Event): void;
+}
+
interface EventListenerObject {
- handleEvent(evt: Event): void;
+ handleEvent(object: Event): void;
}
interface EventSourceEventMap {
@@ -5395,7 +5180,7 @@ interface EventSource extends EventTarget {
declare var EventSource: {
prototype: EventSource;
- new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;
+ new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
@@ -5414,9 +5199,11 @@ interface EventTarget {
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
+ * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
+ *
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
- addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* 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.
*/
@@ -5432,23 +5219,7 @@ declare var EventTarget: {
new(): EventTarget;
};
-interface ExtensionScriptApis {
- extensionIdToShortId(extensionId: string): number;
- fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;
- genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;
- genericSynchronousFunction(functionId: number, parameters?: string): string;
- genericWebRuntimeCallout(to: any, from: any, payload: string): void;
- getExtensionId(): string;
- registerGenericFunctionCallbackHandler(callbackHandler: Function): void;
- registerGenericPersistentCallbackHandler(callbackHandler: Function): void;
- registerWebRuntimeCallbackHandler(handler: Function): any;
-}
-
-declare var ExtensionScriptApis: {
- prototype: ExtensionScriptApis;
- new(): ExtensionScriptApis;
-};
-
+/** @deprecated */
interface External {
/** @deprecated */
AddSearchProvider(): void;
@@ -5456,6 +5227,7 @@ interface External {
IsSearchProviderInstalled(): void;
}
+/** @deprecated */
declare var External: {
prototype: External;
new(): External;
@@ -5465,6 +5237,7 @@ declare var External: {
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
+ readonly webkitRelativePath: string;
}
declare var File: {
@@ -5526,6 +5299,62 @@ declare var FileReader: {
readonly LOADING: number;
};
+interface FileSystem {
+ readonly name: string;
+ readonly root: FileSystemDirectoryEntry;
+}
+
+declare var FileSystem: {
+ prototype: FileSystem;
+ new(): FileSystem;
+};
+
+interface FileSystemDirectoryEntry extends FileSystemEntry {
+ createReader(): FileSystemDirectoryReader;
+ getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
+ getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
+}
+
+declare var FileSystemDirectoryEntry: {
+ prototype: FileSystemDirectoryEntry;
+ new(): FileSystemDirectoryEntry;
+};
+
+/** @deprecated */
+interface FileSystemDirectoryReader {
+ /** @deprecated */
+ readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
+}
+
+/** @deprecated */
+declare var FileSystemDirectoryReader: {
+ prototype: FileSystemDirectoryReader;
+ new(): FileSystemDirectoryReader;
+};
+
+interface FileSystemEntry {
+ readonly filesystem: FileSystem;
+ readonly fullPath: string;
+ readonly isDirectory: boolean;
+ readonly isFile: boolean;
+ readonly name: string;
+ getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
+}
+
+declare var FileSystemEntry: {
+ prototype: FileSystemEntry;
+ new(): FileSystemEntry;
+};
+
+interface FileSystemFileEntry extends FileSystemEntry {
+ file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
+}
+
+declare var FileSystemFileEntry: {
+ prototype: FileSystemFileEntry;
+ new(): FileSystemFileEntry;
+};
+
/** Focus-related events like focus, blur, focusin, or focusout. */
interface FocusEvent extends UIEvent {
readonly relatedTarget: EventTarget | null;
@@ -5536,20 +5365,68 @@ declare var FocusEvent: {
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
-interface FocusNavigationEvent extends Event {
- readonly navigationReason: NavigationReason;
- readonly originHeight: number;
- readonly originLeft: number;
- readonly originTop: number;
- readonly originWidth: number;
- requestFocus(): void;
+interface FontFace {
+ ascentOverride: string;
+ descentOverride: string;
+ display: string;
+ family: string;
+ featureSettings: string;
+ lineGapOverride: string;
+ readonly loaded: Promise<FontFace>;
+ readonly status: FontFaceLoadStatus;
+ stretch: string;
+ style: string;
+ unicodeRange: string;
+ variant: string;
+ variationSettings: string;
+ weight: string;
+ load(): Promise<FontFace>;
+}
+
+declare var FontFace: {
+ prototype: FontFace;
+ new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
+};
+
+interface FontFaceSetEventMap {
+ "loading": Event;
+ "loadingdone": Event;
+ "loadingerror": Event;
+}
+
+interface FontFaceSet extends EventTarget {
+ onloading: ((this: FontFaceSet, ev: Event) => any) | null;
+ onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
+ onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
+ readonly ready: Promise<FontFaceSet>;
+ readonly status: FontFaceSetLoadStatus;
+ check(font: string, text?: string): boolean;
+ load(font: string, text?: string): Promise<FontFace[]>;
+ forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
+ addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
-declare var FocusNavigationEvent: {
- prototype: FocusNavigationEvent;
- new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;
+declare var FontFaceSet: {
+ prototype: FontFaceSet;
+ new(initialFaces: FontFace[]): FontFaceSet;
};
+interface FontFaceSetLoadEvent extends Event {
+ readonly fontfaces: ReadonlyArray<FontFace>;
+}
+
+declare var FontFaceSetLoadEvent: {
+ prototype: FontFaceSetLoadEvent;
+ new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
+};
+
+interface FontFaceSource {
+ readonly fonts: FontFaceSet;
+}
+
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
@@ -5566,6 +5443,18 @@ declare var FormData: {
new(form?: HTMLFormElement): FormData;
};
+interface FormDataEvent extends Event {
+ /**
+ * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.
+ */
+ readonly formData: FormData;
+}
+
+declare var FormDataEvent: {
+ prototype: FormDataEvent;
+ new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
+};
+
/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
interface GainNode extends AudioNode {
readonly gain: AudioParam;
@@ -5581,13 +5470,11 @@ interface Gamepad {
readonly axes: ReadonlyArray<number>;
readonly buttons: ReadonlyArray<GamepadButton>;
readonly connected: boolean;
- readonly hand: GamepadHand;
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
readonly id: string;
readonly index: number;
readonly mapping: GamepadMappingType;
- readonly pose: GamepadPose | null;
- readonly timestamp: number;
+ readonly timestamp: DOMHighResTimeStamp;
}
declare var Gamepad: {
@@ -5620,7 +5507,6 @@ declare var GamepadEvent: {
/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
interface GamepadHapticActuator {
readonly type: GamepadHapticActuatorType;
- pulse(value: number, duration: number): Promise<boolean>;
}
declare var GamepadHapticActuator: {
@@ -5628,23 +5514,6 @@ declare var GamepadHapticActuator: {
new(): GamepadHapticActuator;
};
-/** This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */
-interface GamepadPose {
- readonly angularAcceleration: Float32Array | null;
- readonly angularVelocity: Float32Array | null;
- readonly hasOrientation: boolean;
- readonly hasPosition: boolean;
- readonly linearAcceleration: Float32Array | null;
- readonly linearVelocity: Float32Array | null;
- readonly orientation: Float32Array | null;
- readonly position: Float32Array | null;
-}
-
-declare var GamepadPose: {
- prototype: GamepadPose;
- new(): GamepadPose;
-};
-
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
@@ -5653,8 +5522,8 @@ interface GenericTransformStream {
/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
interface Geolocation {
clearWatch(watchId: number): void;
- getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
- watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
+ getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
+ watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
@@ -5679,7 +5548,7 @@ declare var GeolocationCoordinates: {
interface GeolocationPosition {
readonly coords: GeolocationCoordinates;
- readonly timestamp: number;
+ readonly timestamp: DOMTimeStamp;
}
declare var GeolocationPosition: {
@@ -5712,7 +5581,6 @@ interface GlobalEventHandlersEventMap {
"auxclick": MouseEvent;
"beforeinput": InputEvent;
"blur": FocusEvent;
- "cancel": Event;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
@@ -5727,7 +5595,6 @@ interface GlobalEventHandlersEventMap {
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
- "dragexit": Event;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
@@ -5739,6 +5606,7 @@ interface GlobalEventHandlersEventMap {
"focus": FocusEvent;
"focusin": FocusEvent;
"focusout": FocusEvent;
+ "formdata": FormDataEvent;
"gotpointercapture": PointerEvent;
"input": Event;
"invalid": Event;
@@ -5794,6 +5662,10 @@ interface GlobalEventHandlersEventMap {
"transitionstart": TransitionEvent;
"volumechange": Event;
"waiting": Event;
+ "webkitanimationend": Event;
+ "webkitanimationiteration": Event;
+ "webkitanimationstart": Event;
+ "webkittransitionend": Event;
"wheel": WheelEvent;
}
@@ -5813,7 +5685,6 @@ interface GlobalEventHandlers {
* @param ev The focus event.
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
@@ -5857,7 +5728,6 @@ interface GlobalEventHandlers {
* @param ev The drag event.
*/
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
- ondragexit: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
@@ -5899,6 +5769,7 @@ interface GlobalEventHandlers {
* @param ev The event.
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -5910,6 +5781,7 @@ interface GlobalEventHandlers {
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
+ * @deprecated
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
@@ -6009,7 +5881,6 @@ interface GlobalEventHandlers {
* @param ev The event.
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
@@ -6044,10 +5915,10 @@ interface GlobalEventHandlers {
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
@@ -6062,6 +5933,10 @@ interface GlobalEventHandlers {
* @param ev The event.
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6098,13 +5973,13 @@ declare var HTMLAllCollection: {
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
+ * @deprecated
*/
- /** @deprecated */
charset: string;
/**
* Sets or retrieves the coordinates of the object.
+ * @deprecated
*/
- /** @deprecated */
coords: string;
download: string;
/**
@@ -6113,8 +5988,8 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
hreflang: string;
/**
* Sets or retrieves the shape of the object.
+ * @deprecated
*/
- /** @deprecated */
name: string;
ping: string;
referrerPolicy: string;
@@ -6125,13 +6000,13 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
+ * @deprecated
*/
- /** @deprecated */
rev: string;
/**
* Sets or retrieves the shape of the object.
+ * @deprecated
*/
- /** @deprecated */
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
@@ -6153,56 +6028,6 @@ declare var HTMLAnchorElement: {
new(): HTMLAnchorElement;
};
-interface HTMLAppletElement extends HTMLElement {
- /** @deprecated */
- align: string;
- /**
- * Sets or retrieves a text alternative to the graphic.
- */
- /** @deprecated */
- alt: string;
- /**
- * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
- */
- /** @deprecated */
- archive: string;
- /** @deprecated */
- code: string;
- /**
- * Sets or retrieves the URL of the component.
- */
- /** @deprecated */
- codeBase: string;
- readonly form: HTMLFormElement | null;
- /**
- * Sets or retrieves the height of the object.
- */
- /** @deprecated */
- height: string;
- /** @deprecated */
- hspace: number;
- /**
- * Sets or retrieves the shape of the object.
- */
- /** @deprecated */
- name: string;
- /** @deprecated */
- object: string;
- /** @deprecated */
- vspace: number;
- /** @deprecated */
- width: string;
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLAppletElement: {
- prototype: HTMLAppletElement;
- new(): HTMLAppletElement;
-};
-
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
@@ -6216,8 +6041,8 @@ interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
download: string;
/**
* Sets or gets whether clicks in this region cause action.
+ * @deprecated
*/
- /** @deprecated */
noHref: boolean;
ping: string;
referrerPolicy: string;
@@ -6259,8 +6084,8 @@ declare var HTMLAudioElement: {
interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
+ * @deprecated
*/
- /** @deprecated */
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6408,6 +6233,7 @@ interface HTMLCanvasElement extends HTMLElement {
* Gets or sets the width of a canvas element on a document.
*/
width: number;
+ captureStream(frameRequestRate?: number): MediaStream;
/**
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
@@ -6423,7 +6249,6 @@ interface HTMLCanvasElement extends HTMLElement {
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*/
toDataURL(type?: string, quality?: any): string;
- transferControlToOffscreen(): OffscreenCanvas;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -6497,6 +6322,9 @@ declare var HTMLDataElement: {
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
interface HTMLDataListElement extends HTMLElement {
+ /**
+ * Returns an HTMLCollection of the option elements of the datalist element.
+ */
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6522,23 +6350,15 @@ declare var HTMLDetailsElement: {
new(): HTMLDetailsElement;
};
+/** @deprecated this is not available in most browsers */
interface HTMLDialogElement extends HTMLElement {
- open: boolean;
- returnValue: string;
- close(returnValue?: string): void;
- show(): void;
- showModal(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
-declare var HTMLDialogElement: {
- prototype: HTMLDialogElement;
- new(): HTMLDialogElement;
-};
-
+/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
/** @deprecated */
compact: boolean;
@@ -6548,6 +6368,7 @@ interface HTMLDirectoryElement extends HTMLElement {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
+/** @deprecated */
declare var HTMLDirectoryElement: {
prototype: HTMLDirectoryElement;
new(): HTMLDirectoryElement;
@@ -6557,8 +6378,8 @@ declare var HTMLDirectoryElement: {
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6571,7 +6392,7 @@ declare var HTMLDivElement: {
new(): HTMLDivElement;
};
-/** The HTMLDocument property of Window objects is an alias that browsers expose for the Document interface object. */
+/** @deprecated use Document */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6579,12 +6400,13 @@ interface HTMLDocument extends Document {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
+/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
-interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
+interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
@@ -6602,6 +6424,7 @@ interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementC
readonly offsetParent: Element | null;
readonly offsetTop: number;
readonly offsetWidth: number;
+ outerText: string;
spellcheck: boolean;
title: string;
translate: boolean;
@@ -6627,8 +6450,8 @@ interface HTMLEmbedElement extends HTMLElement {
height: string;
/**
* Sets or retrieves the name of the object.
+ * @deprecated
*/
- /** @deprecated */
name: string;
/**
* Sets or retrieves a URL to be loaded by the object.
@@ -6654,12 +6477,18 @@ declare var HTMLEmbedElement: {
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
interface HTMLFieldSetElement extends HTMLElement {
disabled: boolean;
+ /**
+ * Returns an HTMLCollection of the form controls in the element.
+ */
readonly elements: HTMLCollection;
/**
* Retrieves a reference to the form that the object is embedded in.
*/
readonly form: HTMLFormElement | null;
name: string;
+ /**
+ * Returns the string "fieldset".
+ */
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
@@ -6694,14 +6523,17 @@ declare var HTMLFieldSetElement: {
new(): HTMLFieldSetElement;
};
-/** Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text. */
+/**
+ * Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
+ * @deprecated
+ */
interface HTMLFontElement extends HTMLElement {
/** @deprecated */
color: string;
/**
* Sets or retrieves the current typeface family.
+ * @deprecated
*/
- /** @deprecated */
face: string;
/** @deprecated */
size: string;
@@ -6711,6 +6543,7 @@ interface HTMLFontElement extends HTMLElement {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
+/** @deprecated */
declare var HTMLFontElement: {
prototype: HTMLFontElement;
new(): HTMLFontElement;
@@ -6782,6 +6615,7 @@ interface HTMLFormElement extends HTMLElement {
*/
checkValidity(): boolean;
reportValidity(): boolean;
+ requestSubmit(submitter?: HTMLElement | null): void;
/**
* Fires when the user resets a form.
*/
@@ -6803,56 +6637,57 @@ declare var HTMLFormElement: {
new(): HTMLFormElement;
};
+/** @deprecated */
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
+ * @deprecated
*/
- /** @deprecated */
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
+ * @deprecated
*/
- /** @deprecated */
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
+ * @deprecated
*/
- /** @deprecated */
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
+ * @deprecated
*/
- /** @deprecated */
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
+ * @deprecated
*/
- /** @deprecated */
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
+ * @deprecated
*/
- /** @deprecated */
marginWidth: string;
/**
* Sets or retrieves the frame name.
+ * @deprecated
*/
- /** @deprecated */
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
+ * @deprecated
*/
- /** @deprecated */
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
+ * @deprecated
*/
- /** @deprecated */
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
+ * @deprecated
*/
- /** @deprecated */
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6860,6 +6695,7 @@ interface HTMLFrameElement extends HTMLElement {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
+/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
@@ -6868,17 +6704,20 @@ declare var HTMLFrameElement: {
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
-/** Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements. */
+/**
+ * Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
+ * @deprecated
+ */
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
/**
* Sets or retrieves the frame widths of the object.
+ * @deprecated
*/
- /** @deprecated */
cols: string;
/**
* Sets or retrieves the frame heights of the object.
+ * @deprecated
*/
- /** @deprecated */
rows: string;
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6886,6 +6725,7 @@ interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
+/** @deprecated */
declare var HTMLFrameSetElement: {
prototype: HTMLFrameSetElement;
new(): HTMLFrameSetElement;
@@ -6895,22 +6735,22 @@ declare var HTMLFrameSetElement: {
interface HTMLHRElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/** @deprecated */
color: string;
/**
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
+ * @deprecated
*/
- /** @deprecated */
noShade: boolean;
/** @deprecated */
size: string;
/**
* Sets or retrieves the width of the object.
+ * @deprecated
*/
- /** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6940,8 +6780,8 @@ declare var HTMLHeadElement: {
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
+ * @deprecated
*/
- /** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6958,8 +6798,8 @@ declare var HTMLHeadingElement: {
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
+ * @deprecated
*/
- /** @deprecated */
version: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -6973,17 +6813,70 @@ declare var HTMLHtmlElement: {
};
interface HTMLHyperlinkElementUtils {
+ /**
+ * Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
+ *
+ * Can be set, to change the URL's fragment (ignores leading "#").
+ */
hash: string;
+ /**
+ * Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
+ *
+ * Can be set, to change the URL's host and port.
+ */
host: string;
+ /**
+ * Returns the hyperlink's URL's host.
+ *
+ * Can be set, to change the URL's host.
+ */
hostname: string;
+ /**
+ * Returns the hyperlink's URL.
+ *
+ * Can be set, to change the URL.
+ */
href: string;
toString(): string;
+ /**
+ * Returns the hyperlink's URL's origin.
+ */
readonly origin: string;
+ /**
+ * Returns the hyperlink's URL's password.
+ *
+ * Can be set, to change the URL's password.
+ */
password: string;
+ /**
+ * Returns the hyperlink's URL's path.
+ *
+ * Can be set, to change the URL's path.
+ */
pathname: string;
+ /**
+ * Returns the hyperlink's URL's port.
+ *
+ * Can be set, to change the URL's port.
+ */
port: string;
+ /**
+ * Returns the hyperlink's URL's scheme.
+ *
+ * Can be set, to change the URL's scheme.
+ */
protocol: string;
+ /**
+ * Returns the hyperlink's URL's query (includes leading "?" if non-empty).
+ *
+ * Can be set, to change the URL's query (ignores leading "?").
+ */
search: string;
+ /**
+ * Returns the hyperlink's URL's username.
+ *
+ * Can be set, to change the URL's username.
+ */
username: string;
}
@@ -6991,12 +6884,11 @@ interface HTMLHyperlinkElementUtils {
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
allow: string;
allowFullscreen: boolean;
- allowPaymentRequest: boolean;
/**
* Retrieves the document object of the page or frame.
*/
@@ -7007,8 +6899,8 @@ interface HTMLIFrameElement extends HTMLElement {
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
+ * @deprecated
*/
- /** @deprecated */
frameBorder: string;
/**
* Sets or retrieves the height of the object.
@@ -7016,18 +6908,18 @@ interface HTMLIFrameElement extends HTMLElement {
height: string;
/**
* Sets or retrieves a URI to a long description of the object.
+ * @deprecated
*/
- /** @deprecated */
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
+ * @deprecated
*/
- /** @deprecated */
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
+ * @deprecated
*/
- /** @deprecated */
marginWidth: string;
/**
* Sets or retrieves the frame name.
@@ -7037,8 +6929,8 @@ interface HTMLIFrameElement extends HTMLElement {
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
+ * @deprecated
*/
- /** @deprecated */
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
@@ -7068,8 +6960,8 @@ declare var HTMLIFrameElement: {
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
@@ -7077,8 +6969,8 @@ interface HTMLImageElement extends HTMLElement {
alt: string;
/**
* Specifies the properties of a border drawn around an object.
+ * @deprecated
*/
- /** @deprecated */
border: string;
/**
* Retrieves whether the object is fully loaded.
@@ -7093,8 +6985,8 @@ interface HTMLImageElement extends HTMLElement {
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
+ * @deprecated
*/
- /** @deprecated */
hspace: number;
/**
* Sets or retrieves whether the image is a server-side image map.
@@ -7103,15 +6995,15 @@ interface HTMLImageElement extends HTMLElement {
loading: string;
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
+ * @deprecated
*/
- /** @deprecated */
longDesc: string;
/** @deprecated */
lowsrc: string;
/**
* Sets or retrieves the name of the object.
+ * @deprecated
*/
- /** @deprecated */
name: string;
/**
* The original height of the image resource before sizing.
@@ -7134,8 +7026,8 @@ interface HTMLImageElement extends HTMLElement {
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
+ * @deprecated
*/
- /** @deprecated */
vspace: number;
/**
* Sets or retrieves the width of the object.
@@ -7163,8 +7055,8 @@ interface HTMLInputElement extends HTMLElement {
accept: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
@@ -7174,6 +7066,7 @@ interface HTMLInputElement extends HTMLElement {
* Specifies whether autocomplete is applied to an editable text field.
*/
autocomplete: string;
+ capture: string;
/**
* Sets or retrieves the state of the check box or radio button.
*/
@@ -7220,6 +7113,9 @@ interface HTMLInputElement extends HTMLElement {
* Sets or retrieves the height of the object.
*/
height: number;
+ /**
+ * When set, overrides the rendering of checkbox controls so that the current value is not visible.
+ */
indeterminate: boolean;
readonly labels: NodeListOf<HTMLLabelElement> | null;
/**
@@ -7284,8 +7180,8 @@ interface HTMLInputElement extends HTMLElement {
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
+ * @deprecated
*/
- /** @deprecated */
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
@@ -7307,6 +7203,8 @@ interface HTMLInputElement extends HTMLElement {
* Returns the input field value as a number.
*/
valueAsNumber: number;
+ readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
+ webkitdirectory: boolean;
/**
* Sets or retrieves the width of the object.
*/
@@ -7380,6 +7278,9 @@ declare var HTMLLIElement: {
/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
interface HTMLLabelElement extends HTMLElement {
+ /**
+ * Returns the form control that is associated with this element.
+ */
readonly control: HTMLElement | null;
/**
* Retrieves a reference to the form that the object is embedded in.
@@ -7424,8 +7325,8 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
as: string;
/**
* Sets or retrieves the character set used to encode the object.
+ * @deprecated
*/
- /** @deprecated */
charset: string;
crossOrigin: string | null;
disabled: boolean;
@@ -7452,14 +7353,14 @@ interface HTMLLinkElement extends HTMLElement, LinkStyle {
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
+ * @deprecated
*/
- /** @deprecated */
rev: string;
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
+ * @deprecated
*/
- /** @deprecated */
target: string;
/**
* Sets or retrieves the MIME type of the object.
@@ -7497,13 +7398,10 @@ declare var HTMLMapElement: {
new(): HTMLMapElement;
};
-interface HTMLMarqueeElementEventMap extends HTMLElementEventMap {
- "bounce": Event;
- "finish": Event;
- "start": Event;
-}
-
-/** Provides methods to manipulate <marquee> elements. */
+/**
+ * Provides methods to manipulate <marquee> elements.
+ * @deprecated
+ */
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
@@ -7518,12 +7416,6 @@ interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
loop: number;
/** @deprecated */
- onbounce: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
- /** @deprecated */
- onfinish: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
- /** @deprecated */
- onstart: ((this: HTMLMarqueeElement, ev: Event) => any) | null;
- /** @deprecated */
scrollAmount: number;
/** @deprecated */
scrollDelay: number;
@@ -7537,12 +7429,13 @@ interface HTMLMarqueeElement extends HTMLElement {
start(): void;
/** @deprecated */
stop(): void;
- addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
+/** @deprecated */
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
@@ -7581,6 +7474,7 @@ interface HTMLMediaElement extends HTMLElement {
* Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
*/
defaultPlaybackRate: number;
+ disableRemotePlayback: boolean;
/**
* Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
*/
@@ -7625,6 +7519,7 @@ interface HTMLMediaElement extends HTMLElement {
*/
preload: string;
readonly readyState: number;
+ readonly remote: RemotePlayback;
/**
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
*/
@@ -7721,8 +7616,8 @@ interface HTMLMetaElement extends HTMLElement {
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
+ * @deprecated
*/
- /** @deprecated */
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -7803,25 +7698,25 @@ interface HTMLObjectElement extends HTMLElement {
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
+ * @deprecated
*/
- /** @deprecated */
archive: string;
/** @deprecated */
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
+ * @deprecated
*/
- /** @deprecated */
code: string;
/**
* Sets or retrieves the URL of the component.
+ * @deprecated
*/
- /** @deprecated */
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
+ * @deprecated
*/
- /** @deprecated */
codeType: string;
/**
* Retrieves the document object of the page or frame.
@@ -7850,8 +7745,8 @@ interface HTMLObjectElement extends HTMLElement {
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
+ * @deprecated
*/
- /** @deprecated */
standby: string;
/**
* Sets or retrieves the MIME type of the object.
@@ -7905,10 +7800,6 @@ declare var HTMLObjectElement: {
interface HTMLOptGroupElement extends HTMLElement {
disabled: boolean;
/**
- * Retrieves a reference to the form that the object is embedded in.
- */
- readonly form: HTMLFormElement | null;
- /**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*/
label: string;
@@ -8003,7 +7894,6 @@ declare var HTMLOptionsCollection: {
};
interface HTMLOrSVGElement {
- autofocus: boolean;
readonly dataset: DOMStringMap;
nonce?: string;
tabIndex: number;
@@ -8018,9 +7908,17 @@ interface HTMLOutputElement extends HTMLElement {
readonly htmlFor: DOMTokenList;
readonly labels: NodeListOf<HTMLLabelElement>;
name: string;
+ /**
+ * Returns the string "output".
+ */
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
+ /**
+ * Returns the element's current value.
+ *
+ * Can be set, to change the value.
+ */
value: string;
readonly willValidate: boolean;
checkValidity(): boolean;
@@ -8041,8 +7939,8 @@ declare var HTMLOutputElement: {
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8063,8 +7961,8 @@ interface HTMLParamElement extends HTMLElement {
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
+ * @deprecated
*/
- /** @deprecated */
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
@@ -8072,8 +7970,8 @@ interface HTMLParamElement extends HTMLElement {
value: string;
/**
* Sets or retrieves the data type of the value attribute.
+ * @deprecated
*/
- /** @deprecated */
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8103,8 +8001,8 @@ declare var HTMLPictureElement: {
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
+ * @deprecated
*/
- /** @deprecated */
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8165,8 +8063,8 @@ interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
+ * @deprecated
*/
- /** @deprecated */
charset: string;
crossOrigin: string | null;
/**
@@ -8175,13 +8073,13 @@ interface HTMLScriptElement extends HTMLElement {
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
+ * @deprecated
*/
- /** @deprecated */
event: string;
/**
* Sets or retrieves the object that is bound to the event script.
+ * @deprecated
*/
- /** @deprecated */
htmlFor: string;
integrity: string;
noModule: boolean;
@@ -8230,6 +8128,9 @@ interface HTMLSelectElement extends HTMLElement {
* Sets or retrieves the name of the object.
*/
name: string;
+ /**
+ * Returns an HTMLOptionsCollection of the list of options.
+ */
readonly options: HTMLOptionsCollection;
/**
* When present, marks an element that can't be submitted without a value.
@@ -8279,7 +8180,7 @@ interface HTMLSelectElement extends HTMLElement {
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
*/
- item(index: number): Element | null;
+ item(index: number): HTMLOptionElement | null;
/**
* Retrieves a select object or an object from an options collection.
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
@@ -8372,8 +8273,8 @@ interface HTMLStyleElement extends HTMLElement, LinkStyle {
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
+ * @deprecated
*/
- /** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8390,8 +8291,8 @@ declare var HTMLStyleElement: {
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
+ * @deprecated
*/
- /** @deprecated */
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8412,13 +8313,13 @@ interface HTMLTableCellElement extends HTMLElement {
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
+ * @deprecated
*/
- /** @deprecated */
axis: string;
/** @deprecated */
bgColor: string;
@@ -8440,13 +8341,13 @@ interface HTMLTableCellElement extends HTMLElement {
headers: string;
/**
* Sets or retrieves the height of the object.
+ * @deprecated
*/
- /** @deprecated */
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
+ * @deprecated
*/
- /** @deprecated */
noWrap: boolean;
/**
* Sets or retrieves how many rows in a table the cell should span.
@@ -8460,8 +8361,8 @@ interface HTMLTableCellElement extends HTMLElement {
vAlign: string;
/**
* Sets or retrieves the width of the object.
+ * @deprecated
*/
- /** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8478,8 +8379,8 @@ declare var HTMLTableCellElement: {
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/** @deprecated */
ch: string;
@@ -8493,8 +8394,8 @@ interface HTMLTableColElement extends HTMLElement {
vAlign: string;
/**
* Sets or retrieves the width of the object.
+ * @deprecated
*/
- /** @deprecated */
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8507,6 +8408,7 @@ declare var HTMLTableColElement: {
new(): HTMLTableColElement;
};
+/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8514,24 +8416,19 @@ interface HTMLTableDataCellElement extends HTMLTableCellElement {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
-declare var HTMLTableDataCellElement: {
- prototype: HTMLTableDataCellElement;
- new(): HTMLTableDataCellElement;
-};
-
/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/** @deprecated */
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
+ * @deprecated
*/
- /** @deprecated */
border: string;
/**
* Retrieves the caption object of a table.
@@ -8539,18 +8436,18 @@ interface HTMLTableElement extends HTMLElement {
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
+ * @deprecated
*/
- /** @deprecated */
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
+ * @deprecated
*/
- /** @deprecated */
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
+ * @deprecated
*/
- /** @deprecated */
frame: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
@@ -8558,13 +8455,13 @@ interface HTMLTableElement extends HTMLElement {
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
+ * @deprecated
*/
- /** @deprecated */
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
+ * @deprecated
*/
- /** @deprecated */
summary: string;
/**
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
@@ -8580,8 +8477,8 @@ interface HTMLTableElement extends HTMLElement {
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
+ * @deprecated
*/
- /** @deprecated */
width: string;
/**
* Creates an empty caption element in the table.
@@ -8632,6 +8529,7 @@ declare var HTMLTableElement: {
new(): HTMLTableElement;
};
+/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8639,24 +8537,19 @@ interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
-declare var HTMLTableHeaderCellElement: {
- prototype: HTMLTableHeaderCellElement;
- new(): HTMLTableHeaderCellElement;
-};
-
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/** @deprecated */
bgColor: string;
/**
* Retrieves a collection of all cells in the table row.
*/
- readonly cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;
+ readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/** @deprecated */
ch: string;
/** @deprecated */
@@ -8680,7 +8573,7 @@ interface HTMLTableRowElement extends HTMLElement {
* Creates a new cell in the table row, and adds the cell to the cells collection.
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
*/
- insertCell(index?: number): HTMLTableDataCellElement;
+ insertCell(index?: number): HTMLTableCellElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -8696,8 +8589,8 @@ declare var HTMLTableRowElement: {
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
+ * @deprecated
*/
- /** @deprecated */
align: string;
/** @deprecated */
ch: string;
@@ -8732,6 +8625,9 @@ declare var HTMLTableSectionElement: {
/** Enables access to the contents of an HTML <template> element. */
interface HTMLTemplateElement extends HTMLElement {
+ /**
+ * Returns the template contents (a DocumentFragment).
+ */
readonly content: DocumentFragment;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -8894,6 +8790,9 @@ interface HTMLTrackElement extends HTMLElement {
readonly readyState: number;
src: string;
srclang: string;
+ /**
+ * Returns the TextTrack object corresponding to the text track of the track element.
+ */
readonly track: TextTrack;
readonly ERROR: number;
readonly LOADED: number;
@@ -8944,12 +8843,20 @@ declare var HTMLUnknownElement: {
new(): HTMLUnknownElement;
};
+interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
+ "enterpictureinpicture": Event;
+ "leavepictureinpicture": Event;
+}
+
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
interface HTMLVideoElement extends HTMLMediaElement {
+ disablePictureInPicture: boolean;
/**
* Gets or sets the height of the video element.
*/
height: number;
+ onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
+ onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/**
* Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins.
*/
@@ -8971,9 +8878,10 @@ interface HTMLVideoElement extends HTMLMediaElement {
*/
width: number;
getVideoPlaybackQuality(): VideoPlaybackQuality;
- addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ requestPictureInPicture(): Promise<PictureInPictureWindow>;
+ addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
@@ -9022,8 +8930,8 @@ interface History {
back(): void;
forward(): void;
go(delta?: number): void;
- pushState(data: any, title: string, url?: string | null): void;
- replaceState(data: any, title: string, url?: string | null): void;
+ pushState(data: any, unused: string, url?: string | URL | null): void;
+ replaceState(data: any, unused: string, url?: string | URL | null): void;
}
declare var History: {
@@ -9031,9 +8939,6 @@ declare var History: {
new(): History;
};
-interface IDBArrayKey extends Array<IDBValidKey> {
-}
-
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/**
@@ -9048,6 +8953,7 @@ interface IDBCursor {
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*/
readonly primaryKey: IDBValidKey;
+ readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*/
@@ -9162,6 +9068,7 @@ interface IDBFactory {
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
+ databases(): Promise<IDBDatabaseInfo[]>;
/**
* 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.
*/
@@ -9195,13 +9102,13 @@ interface IDBIndex {
*
* If successful, request's result will be the count.
*/
- count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
+ count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
- get(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
+ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
@@ -9219,7 +9126,7 @@ interface IDBIndex {
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
- getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
+ getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
@@ -9327,7 +9234,7 @@ interface IDBObjectStore {
*
* If successful, request's result will be the count.
*/
- count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
+ count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
@@ -9339,7 +9246,7 @@ interface IDBObjectStore {
*
* If successful, request's result will be undefined.
*/
- delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
+ delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
@@ -9351,7 +9258,7 @@ interface IDBObjectStore {
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
- get(query: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;
+ get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
@@ -9474,7 +9381,7 @@ interface IDBTransaction extends EventTarget {
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*/
- readonly error: DOMException;
+ readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*/
@@ -9490,6 +9397,7 @@ interface IDBTransaction extends EventTarget {
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*/
abort(): void;
+ commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*/
@@ -9526,6 +9434,16 @@ declare var IIRFilterNode: {
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
+interface IdleDeadline {
+ readonly didTimeout: boolean;
+ timeRemaining(): DOMHighResTimeStamp;
+}
+
+declare var IdleDeadline: {
+ prototype: IdleDeadline;
+ new(): IdleDeadline;
+};
+
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
@@ -9550,7 +9468,7 @@ interface ImageBitmapRenderingContext {
/**
* Returns the canvas element that the context is bound to.
*/
- readonly canvas: HTMLCanvasElement | OffscreenCanvas;
+ readonly canvas: HTMLCanvasElement;
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*/
@@ -9580,27 +9498,20 @@ interface ImageData {
declare var ImageData: {
prototype: ImageData;
- new(sw: number, sh: number): ImageData;
- new(data: Uint8ClampedArray, sw: number, sh?: number): ImageData;
+ new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
+ new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface InnerHTML {
innerHTML: string;
}
-interface InputDeviceInfo extends MediaDeviceInfo {
- getCapabilities(): MediaTrackCapabilities;
-}
-
-declare var InputDeviceInfo: {
- prototype: InputDeviceInfo;
- new(): InputDeviceInfo;
-};
-
interface InputEvent extends UIEvent {
readonly data: string | null;
+ readonly dataTransfer: DataTransfer | null;
readonly inputType: string;
readonly isComposing: boolean;
+ getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
@@ -9632,7 +9543,7 @@ interface IntersectionObserverEntry {
readonly isIntersecting: boolean;
readonly rootBounds: DOMRectReadOnly | null;
readonly target: Element;
- readonly time: number;
+ readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
@@ -9640,12 +9551,14 @@ declare var IntersectionObserverEntry: {
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
+interface KHR_parallel_shader_compile {
+ readonly COMPLETION_STATUS_KHR: GLenum;
+}
+
/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
interface KeyboardEvent extends UIEvent {
readonly altKey: boolean;
/** @deprecated */
- char: string;
- /** @deprecated */
readonly charCode: number;
readonly code: string;
readonly ctrlKey: boolean;
@@ -9658,6 +9571,8 @@ interface KeyboardEvent extends UIEvent {
readonly repeat: boolean;
readonly shiftKey: boolean;
getModifierState(keyArg: string): boolean;
+ /** @deprecated */
+ initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
readonly DOM_KEY_LOCATION_LEFT: number;
readonly DOM_KEY_LOCATION_NUMPAD: number;
readonly DOM_KEY_LOCATION_RIGHT: number;
@@ -9676,6 +9591,7 @@ declare var KeyboardEvent: {
interface KeyframeEffect extends AnimationEffect {
composite: CompositeOperation;
iterationComposite: IterationCompositeOperation;
+ pseudoElement: string | null;
target: Element | null;
getKeyframes(): ComputedKeyframe[];
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
@@ -9691,16 +9607,6 @@ interface LinkStyle {
readonly sheet: CSSStyleSheet | null;
}
-interface ListeningStateChangedEvent extends Event {
- readonly label: string;
- readonly state: ListeningState;
-}
-
-declare var ListeningStateChangedEvent: {
- prototype: ListeningStateChangedEvent;
- new(): ListeningStateChangedEvent;
-};
-
/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
interface Location {
/**
@@ -9763,17 +9669,15 @@ interface Location {
/**
* Navigates to the given URL.
*/
- assign(url: string): void;
+ assign(url: string | URL): void;
/**
* Reloads the current page.
*/
reload(): void;
- /** @deprecated */
- reload(forcedReload: boolean): void;
/**
* Removes the current page from the session history and navigates to the given URL.
*/
- replace(url: string): void;
+ replace(url: string | URL): void;
}
declare var Location: {
@@ -9781,178 +9685,29 @@ declare var Location: {
new(): Location;
};
-interface MSAssertion {
- readonly id: string;
- readonly type: MSCredentialType;
-}
-
-declare var MSAssertion: {
- prototype: MSAssertion;
- new(): MSAssertion;
-};
-
-interface MSBlobBuilder {
- append(data: any, endings?: string): void;
- getBlob(contentType?: string): Blob;
-}
-
-declare var MSBlobBuilder: {
- prototype: MSBlobBuilder;
- new(): MSBlobBuilder;
-};
-
-interface MSFIDOCredentialAssertion extends MSAssertion {
- readonly algorithm: string | Algorithm;
- readonly attestation: any;
- readonly publicKey: string;
- readonly transportHints: MSTransportType[];
-}
-
-declare var MSFIDOCredentialAssertion: {
- prototype: MSFIDOCredentialAssertion;
- new(): MSFIDOCredentialAssertion;
-};
-
-interface MSFIDOSignature {
- readonly authnrData: string;
- readonly clientData: string;
- readonly signature: string;
+interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
-declare var MSFIDOSignature: {
- prototype: MSFIDOSignature;
- new(): MSFIDOSignature;
-};
-
-interface MSFIDOSignatureAssertion extends MSAssertion {
- readonly signature: MSFIDOSignature;
-}
-
-declare var MSFIDOSignatureAssertion: {
- prototype: MSFIDOSignatureAssertion;
- new(): MSFIDOSignatureAssertion;
-};
-
-interface MSFileSaver {
- msSaveBlob(blob: any, defaultName?: string): boolean;
- msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;
-}
-
-interface MSGesture {
- target: Element;
- addPointer(pointerId: number): void;
- stop(): void;
-}
-
-declare var MSGesture: {
- prototype: MSGesture;
- new(): MSGesture;
-};
-
-/** The msGraphicsTrust() constructor returns an object that provides properties for info on protected video playback. */
-interface MSGraphicsTrust {
- readonly constrictionActive: boolean;
- readonly status: string;
-}
-
-declare var MSGraphicsTrust: {
- prototype: MSGraphicsTrust;
- new(): MSGraphicsTrust;
-};
-
-interface MSInputMethodContextEventMap {
- "MSCandidateWindowHide": Event;
- "MSCandidateWindowShow": Event;
- "MSCandidateWindowUpdate": Event;
-}
-
-interface MSInputMethodContext extends EventTarget {
- readonly compositionEndOffset: number;
- readonly compositionStartOffset: number;
- oncandidatewindowhide: ((this: MSInputMethodContext, ev: Event) => any) | null;
- oncandidatewindowshow: ((this: MSInputMethodContext, ev: Event) => any) | null;
- oncandidatewindowupdate: ((this: MSInputMethodContext, ev: Event) => any) | null;
- readonly target: HTMLElement;
- getCandidateWindowClientRect(): ClientRect;
- getCompositionAlternatives(): string[];
- hasComposition(): boolean;
- isCandidateWindowVisible(): boolean;
- addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+interface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
+ addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
-declare var MSInputMethodContext: {
- prototype: MSInputMethodContext;
- new(): MSInputMethodContext;
+declare var MathMLElement: {
+ prototype: MathMLElement;
+ new(): MathMLElement;
};
-interface MSMediaKeyError {
- readonly code: number;
- readonly systemCode: number;
- readonly MS_MEDIA_KEYERR_CLIENT: number;
- readonly MS_MEDIA_KEYERR_DOMAIN: number;
- readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
- readonly MS_MEDIA_KEYERR_OUTPUT: number;
- readonly MS_MEDIA_KEYERR_SERVICE: number;
- readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-}
-
-declare var MSMediaKeyError: {
- prototype: MSMediaKeyError;
- new(): MSMediaKeyError;
- readonly MS_MEDIA_KEYERR_CLIENT: number;
- readonly MS_MEDIA_KEYERR_DOMAIN: number;
- readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;
- readonly MS_MEDIA_KEYERR_OUTPUT: number;
- readonly MS_MEDIA_KEYERR_SERVICE: number;
- readonly MS_MEDIA_KEYERR_UNKNOWN: number;
-};
-
-interface MSMediaKeySession extends EventTarget {
- readonly error: MSMediaKeyError | null;
- readonly keySystem: string;
- readonly sessionId: string;
- close(): void;
- update(key: Uint8Array): void;
+interface MediaCapabilities {
+ decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
+ encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
-declare var MSMediaKeySession: {
- prototype: MSMediaKeySession;
- new(): MSMediaKeySession;
-};
-
-interface MSMediaKeys {
- readonly keySystem: string;
- createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession;
-}
-
-declare var MSMediaKeys: {
- prototype: MSMediaKeys;
- new(keySystem: string): MSMediaKeys;
- isTypeSupported(keySystem: string, type?: string | null): boolean;
- isTypeSupportedWithFeatures(keySystem: string, type?: string | null): string;
-};
-
-interface MSNavigatorDoNotTrack {
- confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean;
- confirmWebWideTrackingException(args: ExceptionInformation): boolean;
- removeSiteSpecificTrackingException(args: ExceptionInformation): void;
- removeWebWideTrackingException(args: ExceptionInformation): void;
- storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void;
- storeWebWideTrackingException(args: StoreExceptionsInformation): void;
-}
-
-interface MSStream {
- readonly type: string;
- msClose(): void;
- msDetachStream(): any;
-}
-
-declare var MSStream: {
- prototype: MSStream;
- new(): MSStream;
+declare var MediaCapabilities: {
+ prototype: MediaCapabilities;
+ new(): MediaCapabilities;
};
/** The MediaDevicesInfo interface contains information that describes a single media input or output device. */
@@ -9977,6 +9732,7 @@ interface MediaDevicesEventMap {
interface MediaDevices extends EventTarget {
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
enumerateDevices(): Promise<MediaDeviceInfo[]>;
+ getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;
getSupportedConstraints(): MediaTrackSupportedConstraints;
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -10047,7 +9803,7 @@ interface MediaKeySessionEventMap {
/** This EncryptedMediaExtensions API interface represents a context for message exchange with a content decryption module (CDM). */
interface MediaKeySession extends EventTarget {
- readonly closed: Promise<void>;
+ readonly closed: Promise<MediaKeySessionClosedReason>;
readonly expiration: number;
readonly keyStatuses: MediaKeyStatusMap;
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
@@ -10120,6 +9876,18 @@ declare var MediaList: {
new(): MediaList;
};
+interface MediaMetadata {
+ album: string;
+ artist: string;
+ artwork: ReadonlyArray<MediaImage>;
+ title: string;
+}
+
+declare var MediaMetadata: {
+ prototype: MediaMetadata;
+ new(init?: MediaMetadataInit): MediaMetadata;
+};
+
interface MediaQueryListEventMap {
"change": MediaQueryListEvent;
}
@@ -10130,9 +9898,9 @@ interface MediaQueryList extends EventTarget {
readonly media: string;
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/** @deprecated */
- addListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
+ addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/** @deprecated */
- removeListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
+ removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10154,6 +9922,65 @@ declare var MediaQueryListEvent: {
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};
+interface MediaRecorderEventMap {
+ "dataavailable": BlobEvent;
+ "error": Event;
+ "pause": Event;
+ "resume": Event;
+ "start": Event;
+ "stop": Event;
+}
+
+interface MediaRecorder extends EventTarget {
+ readonly audioBitsPerSecond: number;
+ readonly mimeType: string;
+ ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
+ onerror: ((this: MediaRecorder, ev: Event) => any) | null;
+ onpause: ((this: MediaRecorder, ev: Event) => any) | null;
+ onresume: ((this: MediaRecorder, ev: Event) => any) | null;
+ onstart: ((this: MediaRecorder, ev: Event) => any) | null;
+ onstop: ((this: MediaRecorder, ev: Event) => any) | null;
+ readonly state: RecordingState;
+ readonly stream: MediaStream;
+ readonly videoBitsPerSecond: number;
+ pause(): void;
+ requestData(): void;
+ resume(): void;
+ start(timeslice?: number): void;
+ stop(): void;
+ addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var MediaRecorder: {
+ prototype: MediaRecorder;
+ new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
+ isTypeSupported(type: string): boolean;
+};
+
+interface MediaRecorderErrorEvent extends Event {
+ readonly error: DOMException;
+}
+
+declare var MediaRecorderErrorEvent: {
+ prototype: MediaRecorderErrorEvent;
+ new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
+};
+
+interface MediaSession {
+ metadata: MediaMetadata | null;
+ playbackState: MediaSessionPlaybackState;
+ setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
+ setPositionState(state?: MediaPositionState): void;
+}
+
+declare var MediaSession: {
+ prototype: MediaSession;
+ new(): MediaSession;
+};
+
interface MediaSourceEventMap {
"sourceclose": Event;
"sourceended": Event;
@@ -10236,36 +10063,6 @@ declare var MediaStreamAudioSourceNode: {
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};
-interface MediaStreamError {
- readonly constraintName: string | null;
- readonly message: string | null;
- readonly name: string;
-}
-
-declare var MediaStreamError: {
- prototype: MediaStreamError;
- new(): MediaStreamError;
-};
-
-interface MediaStreamErrorEvent extends Event {
- readonly error: MediaStreamError | null;
-}
-
-declare var MediaStreamErrorEvent: {
- prototype: MediaStreamErrorEvent;
- new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent;
-};
-
-/** Events that occurs in relation to a MediaStream. Two events of this type can be thrown: addstream and removestream. */
-interface MediaStreamEvent extends Event {
- readonly stream: MediaStream | null;
-}
-
-declare var MediaStreamEvent: {
- prototype: MediaStreamEvent;
- new(type: string, eventInitDict: MediaStreamEventInit): MediaStreamEvent;
-};
-
interface MediaStreamTrackEventMap {
"ended": Event;
"mute": Event;
@@ -10274,6 +10071,7 @@ interface MediaStreamTrackEventMap {
/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
interface MediaStreamTrack extends EventTarget {
+ contentHint: string;
enabled: boolean;
readonly id: string;
readonly kind: string;
@@ -10300,14 +10098,6 @@ declare var MediaStreamTrack: {
new(): MediaStreamTrack;
};
-interface MediaStreamTrackAudioSourceNode extends AudioNode {
-}
-
-declare var MediaStreamTrackAudioSourceNode: {
- prototype: MediaStreamTrackAudioSourceNode;
- new(context: AudioContext, options: MediaStreamTrackAudioSourceOptions): MediaStreamTrackAudioSourceNode;
-};
-
/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
interface MediaStreamTrackEvent extends Event {
readonly track: MediaStreamTrack;
@@ -10357,6 +10147,8 @@ interface MessageEvent<T = any> extends Event {
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*/
readonly source: MessageEventSource | null;
+ /** @deprecated */
+ initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
@@ -10399,39 +10191,54 @@ declare var MessagePort: {
new(): MessagePort;
};
-/** Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. */
+/**
+ * Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
+ * @deprecated
+ */
interface MimeType {
/**
* Returns the MIME type's description.
+ * @deprecated
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
+ * @deprecated
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
+ * @deprecated
*/
readonly suffixes: string;
/**
* Returns the MIME type.
+ * @deprecated
*/
readonly type: string;
}
+/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
-/** Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. */
+/**
+ * Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
+ * @deprecated
+ */
interface MimeTypeArray {
+ /** @deprecated */
readonly length: number;
+ /** @deprecated */
item(index: number): MimeType | null;
+ /** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
+/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
@@ -10459,6 +10266,7 @@ interface MouseEvent extends UIEvent {
readonly x: number;
readonly y: number;
getModifierState(keyArg: string): boolean;
+ /** @deprecated */
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
}
@@ -10467,20 +10275,29 @@ declare var MouseEvent: {
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};
-/** Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
- * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface. */
+/**
+ * Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
+ * @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
+ */
interface MutationEvent extends Event {
+ /** @deprecated */
readonly attrChange: number;
+ /** @deprecated */
readonly attrName: string;
+ /** @deprecated */
readonly newValue: string;
+ /** @deprecated */
readonly prevValue: string;
- readonly relatedNode: Node;
- initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;
+ /** @deprecated */
+ readonly relatedNode: Node | null;
+ /** @deprecated */
+ initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly ADDITION: number;
readonly MODIFICATION: number;
readonly REMOVAL: number;
}
+/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
@@ -10575,41 +10392,24 @@ declare var NamedNodeMap: {
new(): NamedNodeMap;
};
-interface NavigationPreloadManager {
- disable(): Promise<void>;
- enable(): Promise<void>;
- getState(): Promise<NavigationPreloadState>;
- setHeaderValue(value: string): Promise<void>;
-}
-
-declare var NavigationPreloadManager: {
- prototype: NavigationPreloadManager;
- new(): NavigationPreloadManager;
-};
-
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
-interface Navigator extends MSFileSaver, MSNavigatorDoNotTrack, NavigatorAutomationInformation, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
- readonly activeVRDisplays: ReadonlyArray<VRDisplay>;
+interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
readonly clipboard: Clipboard;
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
readonly geolocation: Geolocation;
readonly maxTouchPoints: number;
+ readonly mediaCapabilities: MediaCapabilities;
readonly mediaDevices: MediaDevices;
- readonly msManipulationViewsEnabled: boolean;
- readonly msMaxTouchPoints: number;
- readonly msPointerEnabled: boolean;
+ readonly mediaSession: MediaSession;
readonly permissions: Permissions;
readonly pointerEnabled: boolean;
readonly serviceWorker: ServiceWorkerContainer;
getGamepads(): (Gamepad | null)[];
- getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
- getVRDisplays(): Promise<VRDisplay[]>;
- msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
- sendBeacon(url: string, data?: BodyInit | null): boolean;
+ sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
share(data?: ShareData): Promise<void>;
- vibrate(pattern: number | number[]): boolean;
+ vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
@@ -10621,17 +10421,12 @@ interface NavigatorAutomationInformation {
readonly webdriver: boolean;
}
-interface NavigatorBeacon {
- sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean;
-}
-
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
- registerProtocolHandler(scheme: string, url: string, title: string): void;
- unregisterProtocolHandler(scheme: string, url: string): void;
+ registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
@@ -10639,14 +10434,21 @@ interface NavigatorCookies {
}
interface NavigatorID {
+ /** @deprecated */
readonly appCodeName: string;
+ /** @deprecated */
readonly appName: string;
+ /** @deprecated */
readonly appVersion: string;
+ /** @deprecated */
readonly platform: string;
+ /** @deprecated */
readonly product: string;
+ /** @deprecated */
readonly productSub: string;
readonly userAgent: string;
readonly vendor: string;
+ /** @deprecated */
readonly vendorSub: string;
}
@@ -10655,13 +10457,20 @@ interface NavigatorLanguage {
readonly languages: ReadonlyArray<string>;
}
+interface NavigatorNetworkInformation {
+ readonly connection: NetworkInformation;
+}
+
interface NavigatorOnLine {
readonly onLine: boolean;
}
interface NavigatorPlugins {
+ /** @deprecated */
readonly mimeTypes: MimeTypeArray;
+ /** @deprecated */
readonly plugins: PluginArray;
+ /** @deprecated */
javaEnabled(): boolean;
}
@@ -10669,6 +10478,15 @@ interface NavigatorStorage {
readonly storage: StorageManager;
}
+interface NetworkInformation extends EventTarget {
+ readonly type: ConnectionType;
+}
+
+declare var NetworkInformation: {
+ prototype: NetworkInformation;
+ new(): NetworkInformation;
+};
+
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
interface Node extends EventTarget {
/**
@@ -10691,8 +10509,6 @@ interface Node extends EventTarget {
* Returns the last child.
*/
readonly lastChild: ChildNode | null;
- /** @deprecated */
- readonly namespaceURI: string | null;
/**
* Returns the next sibling.
*/
@@ -10717,13 +10533,13 @@ interface Node extends EventTarget {
/**
* Returns the parent.
*/
- readonly parentNode: Node & ParentNode | null;
+ readonly parentNode: ParentNode | null;
/**
* Returns the previous sibling.
*/
readonly previousSibling: ChildNode | null;
textContent: string | null;
- appendChild<T extends Node>(newChild: T): T;
+ appendChild<T extends Node>(node: T): T;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*/
@@ -10744,7 +10560,7 @@ interface Node extends EventTarget {
* Returns whether node has children.
*/
hasChildNodes(): boolean;
- insertBefore<T extends Node>(newChild: T, refChild: Node | null): T;
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
isDefaultNamespace(namespace: string | null): boolean;
/**
* Returns whether node and otherNode have the same properties.
@@ -10757,8 +10573,8 @@ interface Node extends EventTarget {
* Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
*/
normalize(): void;
- removeChild<T extends Node>(oldChild: T): T;
- replaceChild<T extends Node>(newChild: Node, oldChild: T): T;
+ removeChild<T extends Node>(child: T): T;
+ replaceChild<T extends Node>(node: Node, child: T): T;
readonly ATTRIBUTE_NODE: number;
/**
* node is a CDATASection node.
@@ -10880,30 +10696,6 @@ declare var Node: {
readonly TEXT_NODE: number;
};
-/** An object used to filter the nodes in a NodeIterator or TreeWalker. They don't know anything about the DOM or how to traverse nodes; they just know how to evaluate a single node against the provided filter. */
-interface NodeFilter {
- acceptNode(node: Node): number;
-}
-
-declare var NodeFilter: {
- readonly FILTER_ACCEPT: number;
- readonly FILTER_REJECT: number;
- readonly FILTER_SKIP: number;
- readonly SHOW_ALL: number;
- readonly SHOW_ATTRIBUTE: number;
- readonly SHOW_CDATA_SECTION: number;
- readonly SHOW_COMMENT: number;
- readonly SHOW_DOCUMENT: number;
- readonly SHOW_DOCUMENT_FRAGMENT: number;
- readonly SHOW_DOCUMENT_TYPE: number;
- readonly SHOW_ELEMENT: number;
- readonly SHOW_ENTITY: number;
- readonly SHOW_ENTITY_REFERENCE: number;
- readonly SHOW_NOTATION: number;
- readonly SHOW_PROCESSING_INSTRUCTION: number;
- readonly SHOW_TEXT: number;
-};
-
/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
interface NodeIterator {
readonly filter: NodeFilter | null;
@@ -10911,6 +10703,7 @@ interface NodeIterator {
readonly referenceNode: Node;
readonly root: Node;
readonly whatToShow: number;
+ /** @deprecated */
detach(): void;
nextNode(): Node | null;
previousNode(): Node | null;
@@ -10983,25 +10776,17 @@ interface NotificationEventMap {
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
- readonly actions: ReadonlyArray<NotificationAction>;
- readonly badge: string;
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
- readonly image: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
- readonly renotify: boolean;
- readonly requireInteraction: boolean;
- readonly silent: boolean;
readonly tag: string;
- readonly timestamp: number;
readonly title: string;
- readonly vibrate: ReadonlyArray<number>;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -11012,7 +10797,6 @@ interface Notification extends EventTarget {
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
- readonly maxActions: number;
readonly permission: NotificationPermission;
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
@@ -11021,6 +10805,9 @@ declare var Notification: {
interface OES_element_index_uint {
}
+interface OES_fbo_render_mipmap {
+}
+
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
@@ -11051,6 +10838,14 @@ interface OES_vertex_array_object {
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
}
+interface OVR_multiview2 {
+ framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
+ readonly MAX_VIEWS_OVR: GLenum;
+}
+
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
interface OfflineAudioCompletionEvent extends Event {
readonly renderedBuffer: AudioBuffer;
@@ -11084,58 +10879,6 @@ declare var OfflineAudioContext: {
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
-interface OffscreenCanvas extends EventTarget {
- /**
- * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
- * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
- */
- height: number;
- /**
- * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
- *
- * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
- */
- width: number;
- /**
- * Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
- *
- * The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
- */
- convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
- /**
- * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
- *
- * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
- *
- * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
- */
- getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): OffscreenCanvasRenderingContext2D | null;
- getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
- getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
- getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
- getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
- /**
- * Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
- */
- transferToImageBitmap(): ImageBitmap;
-}
-
-declare var OffscreenCanvas: {
- prototype: OffscreenCanvas;
- new(width: number, height: number): OffscreenCanvas;
-};
-
-interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
- readonly canvas: OffscreenCanvas;
- commit(): void;
-}
-
-declare var OffscreenCanvasRenderingContext2D: {
- prototype: OffscreenCanvasRenderingContext2D;
- new(): OffscreenCanvasRenderingContext2D;
-};
-
/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */
interface OscillatorNode extends AudioScheduledSourceNode {
readonly detune: AudioParam;
@@ -11154,29 +10897,12 @@ declare var OscillatorNode: {
};
interface OverconstrainedError extends Error {
- constraint: string;
+ readonly constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
- new(): OverconstrainedError;
-};
-
-interface OverflowEvent extends UIEvent {
- readonly horizontalOverflow: boolean;
- readonly orient: number;
- readonly verticalOverflow: boolean;
- readonly BOTH: number;
- readonly HORIZONTAL: number;
- readonly VERTICAL: number;
-}
-
-declare var OverflowEvent: {
- prototype: OverflowEvent;
- new(): OverflowEvent;
- readonly BOTH: number;
- readonly HORIZONTAL: number;
- readonly VERTICAL: number;
+ new(constraint: string, message?: string): OverconstrainedError;
};
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
@@ -11188,8 +10914,7 @@ interface PageTransitionEvent extends Event {
*
* Things that can cause the page to be unsalvageable include:
*
- * Listening for beforeunload events
- * Listening for unload events
+ * The user agent decided to not keep the Document alive in a session history entry after unload
* Having iframes that are not salvageable
* Active WebSocket objects
* Aborting a Document
@@ -11229,7 +10954,7 @@ declare var PannerNode: {
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
-interface ParentNode {
+interface ParentNode extends Node {
readonly childElementCount: number;
/**
* Returns the child elements.
@@ -11267,6 +10992,12 @@ interface ParentNode {
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
+ /**
+ * Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
+ *
+ * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
+ */
+ replaceChildren(...nodes: (Node | string)[]): void;
}
/** 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. */
@@ -11282,21 +11013,36 @@ declare var Path2D: {
new(path?: Path2D | string): Path2D;
};
-/** This Payment Request API interface is used to store shipping or payment address information. */
+/**
+ * This Payment Request API interface is used to store shipping or payment address information.
+ * @deprecated
+ */
interface PaymentAddress {
+ /** @deprecated */
readonly addressLine: ReadonlyArray<string>;
+ /** @deprecated */
readonly city: string;
+ /** @deprecated */
readonly country: string;
+ /** @deprecated */
readonly dependentLocality: string;
+ /** @deprecated */
readonly organization: string;
+ /** @deprecated */
readonly phone: string;
+ /** @deprecated */
readonly postalCode: string;
+ /** @deprecated */
readonly recipient: string;
+ /** @deprecated */
readonly region: string;
+ /** @deprecated */
readonly sortingCode: string;
+ /** @deprecated */
toJSON(): any;
}
+/** @deprecated */
declare var PaymentAddress: {
prototype: PaymentAddress;
new(): PaymentAddress;
@@ -11314,22 +11060,15 @@ declare var PaymentMethodChangeEvent: {
interface PaymentRequestEventMap {
"paymentmethodchange": Event;
- "shippingaddresschange": Event;
- "shippingoptionchange": Event;
}
/** 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. */
interface PaymentRequest extends EventTarget {
readonly id: string;
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
- onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;
- onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;
- readonly shippingAddress: PaymentAddress | null;
- readonly shippingOption: string | null;
- readonly shippingType: PaymentShippingType | null;
abort(): Promise<void>;
canMakePayment(): Promise<boolean>;
- show(detailsPromise: PaymentDetailsUpdate | Promise<PaymentDetailsUpdate>): Promise<PaymentResponse>;
+ show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -11338,12 +11077,12 @@ interface PaymentRequest extends EventTarget {
declare var PaymentRequest: {
prototype: PaymentRequest;
- new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;
+ new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
};
/** This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action. */
interface PaymentRequestUpdateEvent extends Event {
- updateWith(detailsPromise: PaymentDetailsUpdate | Promise<PaymentDetailsUpdate>): void;
+ updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
@@ -11351,28 +11090,14 @@ declare var PaymentRequestUpdateEvent: {
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
-interface PaymentResponseEventMap {
- "payerdetailchange": Event;
-}
-
/** This Payment Request API interface is returned after a user selects a payment method and approves a payment request. */
interface PaymentResponse extends EventTarget {
readonly details: any;
readonly methodName: string;
- onpayerdetailchange: ((this: PaymentResponse, ev: Event) => any) | null;
- readonly payerEmail: string | null;
- readonly payerName: string | null;
- readonly payerPhone: string | null;
readonly requestId: string;
- readonly shippingAddress: PaymentAddress | null;
- readonly shippingOption: string | null;
complete(result?: PaymentComplete): Promise<void>;
retry(errorFields?: PaymentValidationErrors): Promise<void>;
toJSON(): any;
- addEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof PaymentResponseEventMap>(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentResponse: {
@@ -11380,35 +11105,6 @@ declare var PaymentResponse: {
new(): PaymentResponse;
};
-interface PerfWidgetExternal {
- readonly activeNetworkRequestCount: number;
- readonly averageFrameTime: number;
- readonly averagePaintTime: number;
- readonly extraInformationEnabled: boolean;
- readonly independentRenderingEnabled: boolean;
- readonly irDisablingContentString: string;
- readonly irStatusAvailable: boolean;
- readonly maxCpuSpeed: number;
- readonly paintRequestsPerSecond: number;
- readonly performanceCounter: number;
- readonly performanceCounterFrequency: number;
- addEventListener(eventType: string, callback: Function): void;
- getMemoryUsage(): number;
- getProcessCpuUsage(): number;
- getRecentCpuUsage(last: number | null): any;
- getRecentFrames(last: number | null): any;
- getRecentMemoryUsage(last: number | null): any;
- getRecentPaintRequests(last: number | null): any;
- removeEventListener(eventType: string, callback: Function): void;
- repositionWindow(x: number, y: number): void;
- resizeWindow(width: number, height: number): void;
-}
-
-declare var PerfWidgetExternal: {
- prototype: PerfWidgetExternal;
- new(): PerfWidgetExternal;
-};
-
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
@@ -11418,7 +11114,7 @@ interface Performance extends EventTarget {
/** @deprecated */
readonly navigation: PerformanceNavigation;
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
- readonly timeOrigin: number;
+ readonly timeOrigin: DOMHighResTimeStamp;
/** @deprecated */
readonly timing: PerformanceTiming;
clearMarks(markName?: string): void;
@@ -11427,9 +11123,9 @@ interface Performance extends EventTarget {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
- mark(markName: string): void;
- measure(measureName: string, startMark?: string, endMark?: string): void;
- now(): number;
+ mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
+ measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
+ now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -11445,10 +11141,10 @@ declare var Performance: {
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
interface PerformanceEntry {
- readonly duration: number;
+ readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
- readonly startTime: number;
+ readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
@@ -11457,17 +11153,31 @@ declare var PerformanceEntry: {
new(): PerformanceEntry;
};
+interface PerformanceEventTiming extends PerformanceEntry {
+ readonly cancelable: boolean;
+ readonly processingEnd: DOMHighResTimeStamp;
+ readonly processingStart: DOMHighResTimeStamp;
+ readonly target: Node | null;
+}
+
+declare var PerformanceEventTiming: {
+ prototype: PerformanceEventTiming;
+ new(): PerformanceEventTiming;
+};
+
/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
interface PerformanceMark extends PerformanceEntry {
+ readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
- new(): PerformanceMark;
+ new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
interface PerformanceMeasure extends PerformanceEntry {
+ readonly detail: any;
}
declare var PerformanceMeasure: {
@@ -11475,12 +11185,16 @@ declare var PerformanceMeasure: {
new(): PerformanceMeasure;
};
-/** The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
+/**
+ * The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceNavigation {
+ /** @deprecated */
readonly redirectCount: number;
+ /** @deprecated */
readonly type: number;
+ /** @deprecated */
toJSON(): any;
readonly TYPE_BACK_FORWARD: number;
readonly TYPE_NAVIGATE: number;
@@ -11488,6 +11202,7 @@ interface PerformanceNavigation {
readonly TYPE_RESERVED: number;
}
+/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
@@ -11499,16 +11214,16 @@ declare var PerformanceNavigation: {
/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
- readonly domComplete: number;
- readonly domContentLoadedEventEnd: number;
- readonly domContentLoadedEventStart: number;
- readonly domInteractive: number;
- readonly loadEventEnd: number;
- readonly loadEventStart: number;
+ readonly domComplete: DOMHighResTimeStamp;
+ readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
+ readonly domContentLoadedEventStart: DOMHighResTimeStamp;
+ readonly domInteractive: DOMHighResTimeStamp;
+ readonly loadEventEnd: DOMHighResTimeStamp;
+ readonly loadEventStart: DOMHighResTimeStamp;
readonly redirectCount: number;
readonly type: NavigationType;
- readonly unloadEventEnd: number;
- readonly unloadEventStart: number;
+ readonly unloadEventEnd: DOMHighResTimeStamp;
+ readonly unloadEventStart: DOMHighResTimeStamp;
toJSON(): any;
}
@@ -11540,25 +11255,34 @@ declare var PerformanceObserverEntryList: {
new(): PerformanceObserverEntryList;
};
+interface PerformancePaintTiming extends PerformanceEntry {
+}
+
+declare var PerformancePaintTiming: {
+ prototype: PerformancePaintTiming;
+ new(): PerformancePaintTiming;
+};
+
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
interface PerformanceResourceTiming extends PerformanceEntry {
- readonly connectEnd: number;
- readonly connectStart: number;
+ readonly connectEnd: DOMHighResTimeStamp;
+ readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
- readonly domainLookupEnd: number;
- readonly domainLookupStart: number;
+ readonly domainLookupEnd: DOMHighResTimeStamp;
+ readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
- readonly fetchStart: number;
+ readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
- readonly redirectEnd: number;
- readonly redirectStart: number;
- readonly requestStart: number;
- readonly responseEnd: number;
- readonly responseStart: number;
- readonly secureConnectionStart: number;
+ readonly redirectEnd: DOMHighResTimeStamp;
+ readonly redirectStart: DOMHighResTimeStamp;
+ readonly requestStart: DOMHighResTimeStamp;
+ readonly responseEnd: DOMHighResTimeStamp;
+ readonly responseStart: DOMHighResTimeStamp;
+ readonly secureConnectionStart: DOMHighResTimeStamp;
+ readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
- readonly workerStart: number;
+ readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
@@ -11567,34 +11291,70 @@ declare var PerformanceResourceTiming: {
new(): PerformanceResourceTiming;
};
-/** A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
+interface PerformanceServerTiming {
+ readonly description: string;
+ readonly duration: DOMHighResTimeStamp;
+ readonly name: string;
+ toJSON(): any;
+}
+
+declare var PerformanceServerTiming: {
+ prototype: PerformanceServerTiming;
+ new(): PerformanceServerTiming;
+};
+
+/**
+ * A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceTiming {
+ /** @deprecated */
readonly connectEnd: number;
+ /** @deprecated */
readonly connectStart: number;
+ /** @deprecated */
readonly domComplete: number;
+ /** @deprecated */
readonly domContentLoadedEventEnd: number;
+ /** @deprecated */
readonly domContentLoadedEventStart: number;
+ /** @deprecated */
readonly domInteractive: number;
+ /** @deprecated */
readonly domLoading: number;
+ /** @deprecated */
readonly domainLookupEnd: number;
+ /** @deprecated */
readonly domainLookupStart: number;
+ /** @deprecated */
readonly fetchStart: number;
+ /** @deprecated */
readonly loadEventEnd: number;
+ /** @deprecated */
readonly loadEventStart: number;
+ /** @deprecated */
readonly navigationStart: number;
+ /** @deprecated */
readonly redirectEnd: number;
+ /** @deprecated */
readonly redirectStart: number;
+ /** @deprecated */
readonly requestStart: number;
+ /** @deprecated */
readonly responseEnd: number;
+ /** @deprecated */
readonly responseStart: number;
+ /** @deprecated */
readonly secureConnectionStart: number;
+ /** @deprecated */
readonly unloadEventEnd: number;
+ /** @deprecated */
readonly unloadEventStart: number;
+ /** @deprecated */
toJSON(): any;
}
+/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
@@ -11609,25 +11369,6 @@ declare var PeriodicWave: {
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
-interface PermissionRequest extends DeferredPermissionRequest {
- readonly state: MSWebViewPermissionState;
- defer(): void;
-}
-
-declare var PermissionRequest: {
- prototype: PermissionRequest;
- new(): PermissionRequest;
-};
-
-interface PermissionRequestedEvent extends Event {
- readonly permissionRequest: PermissionRequest;
-}
-
-declare var PermissionRequestedEvent: {
- prototype: PermissionRequestedEvent;
- new(): PermissionRequestedEvent;
-};
-
interface PermissionStatusEventMap {
"change": Event;
}
@@ -11647,7 +11388,7 @@ declare var PermissionStatus: {
};
interface Permissions {
- query(permissionDesc: PermissionDescriptor | DevicePermissionDescriptor | MidiPermissionDescriptor | PushPermissionDescriptor): Promise<PermissionStatus>;
+ query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
@@ -11655,46 +11396,83 @@ declare var Permissions: {
new(): Permissions;
};
-/** Provides information about a browser plugin. */
+interface PictureInPictureWindowEventMap {
+ "resize": Event;
+}
+
+interface PictureInPictureWindow extends EventTarget {
+ readonly height: number;
+ onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
+ readonly width: number;
+ addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var PictureInPictureWindow: {
+ prototype: PictureInPictureWindow;
+ new(): PictureInPictureWindow;
+};
+
+/**
+ * Provides information about a browser plugin.
+ * @deprecated
+ */
interface Plugin {
/**
* Returns the plugin's description.
+ * @deprecated
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
+ * @deprecated
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
+ * @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
+ * @deprecated
*/
readonly name: string;
/**
* Returns the specified MimeType object.
+ * @deprecated
*/
item(index: number): MimeType | null;
+ /** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
+/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
-/** Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. */
+/**
+ * Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
+ * @deprecated
+ */
interface PluginArray {
+ /** @deprecated */
readonly length: number;
+ /** @deprecated */
item(index: number): Plugin | null;
+ /** @deprecated */
namedItem(name: string): Plugin | null;
- refresh(reload?: boolean): void;
+ /** @deprecated */
+ refresh(): void;
[index: number]: Plugin;
}
+/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
@@ -11796,7 +11574,6 @@ declare var PushManager: {
/** This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service. */
interface PushSubscription {
readonly endpoint: string;
- readonly expirationTime: number | null;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
@@ -11810,7 +11587,6 @@ declare var PushSubscription: {
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
- readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
@@ -11819,7 +11595,7 @@ declare var PushSubscriptionOptions: {
};
interface RTCCertificate {
- readonly expires: number;
+ readonly expires: DOMTimeStamp;
getFingerprints(): RTCDtlsFingerprint[];
}
@@ -11861,7 +11637,7 @@ declare var RTCDTMFToneChangeEvent: {
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
- "error": RTCErrorEvent;
+ "error": Event;
"message": MessageEvent;
"open": Event;
}
@@ -11877,7 +11653,7 @@ interface RTCDataChannel extends EventTarget {
readonly negotiated: boolean;
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
- onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;
+ onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
@@ -11909,16 +11685,12 @@ declare var RTCDataChannelEvent: {
};
interface RTCDtlsTransportEventMap {
- "error": RTCErrorEvent;
"statechange": Event;
}
interface RTCDtlsTransport extends EventTarget {
- readonly iceTransport: RTCIceTransport;
- onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
readonly state: RTCDtlsTransportState;
- getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -11930,62 +11702,9 @@ declare var RTCDtlsTransport: {
new(): RTCDtlsTransport;
};
-interface RTCDtlsTransportStateChangedEvent extends Event {
- readonly state: RTCDtlsTransportState;
-}
-
-declare var RTCDtlsTransportStateChangedEvent: {
- prototype: RTCDtlsTransportStateChangedEvent;
- new(): RTCDtlsTransportStateChangedEvent;
-};
-
-interface RTCDtmfSenderEventMap {
- "tonechange": RTCDTMFToneChangeEvent;
-}
-
-interface RTCDtmfSender extends EventTarget {
- readonly canInsertDTMF: boolean;
- readonly duration: number;
- readonly interToneGap: number;
- ontonechange: ((this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any) | null;
- readonly sender: RTCRtpSender;
- readonly toneBuffer: string;
- insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
- addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var RTCDtmfSender: {
- prototype: RTCDtmfSender;
- new(sender: RTCRtpSender): RTCDtmfSender;
-};
-
-interface RTCError extends DOMException {
- readonly errorDetail: RTCErrorDetailType;
- readonly receivedAlert: number | null;
- readonly sctpCauseCode: number | null;
- readonly sdpLineNumber: number | null;
- readonly sentAlert: number | null;
-}
-
-declare var RTCError: {
- prototype: RTCError;
- new(init: RTCErrorInit, message?: string): RTCError;
-};
-
-interface RTCErrorEvent extends Event {
- readonly error: RTCError;
-}
-
-declare var RTCErrorEvent: {
- prototype: RTCErrorEvent;
- new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
-};
-
/** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
interface RTCIceCandidate {
+ readonly address: string | null;
readonly candidate: string;
readonly component: RTCIceComponent | null;
readonly foundation: string | null;
@@ -12007,70 +11726,10 @@ declare var RTCIceCandidate: {
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
-interface RTCIceCandidatePairChangedEvent extends Event {
- readonly pair: RTCIceCandidatePair;
-}
-
-declare var RTCIceCandidatePairChangedEvent: {
- prototype: RTCIceCandidatePairChangedEvent;
- new(): RTCIceCandidatePairChangedEvent;
-};
-
-interface RTCIceGathererEventMap {
- "error": Event;
- "localcandidate": RTCIceGathererEvent;
-}
-
-interface RTCIceGatherer extends RTCStatsProvider {
- readonly component: RTCIceComponent;
- onerror: ((this: RTCIceGatherer, ev: Event) => any) | null;
- onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null;
- createAssociatedGatherer(): RTCIceGatherer;
- getLocalCandidates(): RTCIceCandidateDictionary[];
- getLocalParameters(): RTCIceParameters;
- addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var RTCIceGatherer: {
- prototype: RTCIceGatherer;
- new(options: RTCIceGatherOptions): RTCIceGatherer;
-};
-
-interface RTCIceGathererEvent extends Event {
- readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete;
-}
-
-declare var RTCIceGathererEvent: {
- prototype: RTCIceGathererEvent;
- new(): RTCIceGathererEvent;
-};
-
-interface RTCIceTransportEventMap {
- "gatheringstatechange": Event;
- "selectedcandidatepairchange": Event;
- "statechange": Event;
-}
-
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
readonly gatheringState: RTCIceGathererState;
- ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
- onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
- onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
- readonly role: RTCIceRole;
readonly state: RTCIceTransportState;
- getLocalCandidates(): RTCIceCandidate[];
- getLocalParameters(): RTCIceParameters | null;
- getRemoteCandidates(): RTCIceCandidate[];
- getRemoteParameters(): RTCIceParameters | null;
- getSelectedCandidatePair(): RTCIceCandidatePair | null;
- addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCIceTransport: {
@@ -12078,30 +11737,11 @@ declare var RTCIceTransport: {
new(): RTCIceTransport;
};
-interface RTCIceTransportStateChangedEvent extends Event {
- readonly state: RTCIceTransportState;
-}
-
-declare var RTCIceTransportStateChangedEvent: {
- prototype: RTCIceTransportStateChangedEvent;
- new(): RTCIceTransportStateChangedEvent;
-};
-
-interface RTCIdentityAssertion {
- idp: string;
- name: string;
-}
-
-declare var RTCIdentityAssertion: {
- prototype: RTCIdentityAssertion;
- new(idp: string, name: string): RTCIdentityAssertion;
-};
-
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
- "icecandidateerror": RTCPeerConnectionIceErrorEvent;
+ "icecandidateerror": Event;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
@@ -12117,33 +11757,34 @@ interface RTCPeerConnection extends EventTarget {
readonly currentRemoteDescription: RTCSessionDescription | null;
readonly iceConnectionState: RTCIceConnectionState;
readonly iceGatheringState: RTCIceGatheringState;
- readonly idpErrorInfo: string | null;
- readonly idpLoginUrl: string | null;
readonly localDescription: RTCSessionDescription | null;
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
- onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;
+ onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
- readonly peerIdentity: Promise<RTCIdentityAssertion>;
readonly pendingLocalDescription: RTCSessionDescription | null;
readonly pendingRemoteDescription: RTCSessionDescription | null;
readonly remoteDescription: RTCSessionDescription | null;
- readonly sctp: RTCSctpTransport | null;
readonly signalingState: RTCSignalingState;
- addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;
+ addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
+ /** @deprecated */
+ addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
close(): void;
- createAnswer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
+ createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
+ /** @deprecated */
+ createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
+ /** @deprecated */
+ createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
getConfiguration(): RTCConfiguration;
- getIdentityAssertion(): Promise<string>;
getReceivers(): RTCRtpReceiver[];
getSenders(): RTCRtpSender[];
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
@@ -12151,9 +11792,12 @@ interface RTCPeerConnection extends EventTarget {
removeTrack(sender: RTCRtpSender): void;
restartIce(): void;
setConfiguration(configuration?: RTCConfiguration): void;
- setIdentityProvider(provider: string, options?: RTCIdentityProviderOptions): void;
- setLocalDescription(description?: RTCSessionDescriptionInit): Promise<void>;
+ setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
+ /** @deprecated */
+ setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
+ /** @deprecated */
+ setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -12229,7 +11873,6 @@ interface RTCRtpTransceiver {
readonly mid: string | null;
readonly receiver: RTCRtpReceiver;
readonly sender: RTCRtpSender;
- setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
stop(): void;
}
@@ -12238,27 +11881,6 @@ declare var RTCRtpTransceiver: {
new(): RTCRtpTransceiver;
};
-interface RTCSctpTransportEventMap {
- "statechange": Event;
-}
-
-interface RTCSctpTransport extends EventTarget {
- readonly maxChannels: number | null;
- readonly maxMessageSize: number;
- onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
- readonly state: RTCSctpTransportState;
- readonly transport: RTCDtlsTransport;
- addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var RTCSctpTransport: {
- prototype: RTCSctpTransport;
- new(): RTCSctpTransport;
-};
-
/** One end of a connection—or potential connection—and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
interface RTCSessionDescription {
readonly sdp: string;
@@ -12271,44 +11893,6 @@ declare var RTCSessionDescription: {
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
-interface RTCSrtpSdesTransportEventMap {
- "error": Event;
-}
-
-interface RTCSrtpSdesTransport extends EventTarget {
- onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null;
- readonly transport: RTCIceTransport;
- addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var RTCSrtpSdesTransport: {
- prototype: RTCSrtpSdesTransport;
- new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;
- getLocalParameters(): RTCSrtpSdesParameters[];
-};
-
-interface RTCSsrcConflictEvent extends Event {
- readonly ssrc: number;
-}
-
-declare var RTCSsrcConflictEvent: {
- prototype: RTCSsrcConflictEvent;
- new(): RTCSsrcConflictEvent;
-};
-
-interface RTCStatsProvider extends EventTarget {
- getStats(): Promise<RTCStatsReport>;
- msGetStats(): Promise<RTCStatsReport>;
-}
-
-declare var RTCStatsProvider: {
- prototype: RTCStatsProvider;
- new(): RTCStatsProvider;
-};
-
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
@@ -12339,15 +11923,6 @@ declare var RadioNodeList: {
new(): RadioNodeList;
};
-interface RandomSource {
- getRandomValues<T extends Int8Array | Uint8ClampedArray | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array>(array: T): T;
-}
-
-declare var RandomSource: {
- prototype: RandomSource;
- new(): RandomSource;
-};
-
/** A fragment of a document that can contain nodes and parts of text nodes. */
interface Range extends AbstractRange {
/**
@@ -12406,8 +11981,9 @@ interface ReadableStream<R = any> {
cancel(reason?: any): Promise<void>;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
- pipeTo(dest: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
+ pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
+ forEach(callbackfn: (value: any, key: number, parent: ReadableStream<R>) => void, thisArg?: any): void;
}
declare var ReadableStream: {
@@ -12418,7 +11994,7 @@ declare var ReadableStream: {
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
- enqueue(chunk: R): void;
+ enqueue(chunk?: R): void;
error(e?: any): void;
}
@@ -12442,6 +12018,31 @@ interface ReadableStreamGenericReader {
cancel(reason?: any): Promise<void>;
}
+interface RemotePlaybackEventMap {
+ "connect": Event;
+ "connecting": Event;
+ "disconnect": Event;
+}
+
+interface RemotePlayback extends EventTarget {
+ onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
+ onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
+ ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
+ readonly state: RemotePlaybackState;
+ cancelWatchAvailability(id?: number): Promise<void>;
+ prompt(): Promise<void>;
+ watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
+ addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var RemotePlayback: {
+ prototype: RemotePlayback;
+ new(): RemotePlayback;
+};
+
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/**
@@ -12465,14 +12066,6 @@ interface Request extends Body {
*/
readonly integrity: string;
/**
- * Returns a boolean indicating whether or not request is for a history navigation (a.k.a. back-foward navigation).
- */
- readonly isHistoryNavigation: boolean;
- /**
- * Returns a boolean indicating whether or not request is for a reload navigation.
- */
- readonly isReloadNavigation: boolean;
- /**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*/
readonly keepalive: boolean;
@@ -12552,7 +12145,6 @@ interface Response extends Body {
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
- readonly trailer: Promise<Headers>;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
@@ -12562,11 +12154,13 @@ declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
- redirect(url: string, status?: number): Response;
+ redirect(url: string | URL, status?: number): Response;
};
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
+ rel: string;
+ readonly relList: DOMTokenList;
readonly target: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -12777,8 +12371,12 @@ declare var SVGAnimatedTransformList: {
new(): SVGAnimatedTransformList;
};
-interface SVGAnimationElement extends SVGElement {
- readonly targetElement: SVGElement;
+interface SVGAnimationElement extends SVGElement, SVGTests {
+ readonly targetElement: SVGElement | null;
+ beginElement(): void;
+ beginElementAt(offset: number): void;
+ endElement(): void;
+ endElementAt(offset: number): void;
getCurrentTime(): number;
getSimpleDuration(): number;
getStartTime(): number;
@@ -12856,20 +12454,6 @@ declare var SVGComponentTransferFunctionElement: {
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
};
-interface SVGCursorElement extends SVGElement {
- readonly x: SVGAnimatedLength;
- readonly y: SVGAnimatedLength;
- addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCursorElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var SVGCursorElement: {
- prototype: SVGCursorElement;
- new(): SVGCursorElement;
-};
-
/** Corresponds to the <defs> element. */
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -12896,11 +12480,11 @@ declare var SVGDescElement: {
new(): SVGDescElement;
};
-interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {
+interface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
-interface SVGElement extends Element, DocumentAndElementEventHandlers, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, GlobalEventHandlers, HTMLOrSVGElement, SVGElementInstance {
+interface SVGElement extends Element, DocumentAndElementEventHandlers, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
@@ -12916,28 +12500,6 @@ declare var SVGElement: {
new(): SVGElement;
};
-interface SVGElementInstance extends EventTarget {
- readonly correspondingElement: SVGElement;
- readonly correspondingUseElement: SVGUseElement;
-}
-
-declare var SVGElementInstance: {
- prototype: SVGElementInstance;
- new(): SVGElementInstance;
-};
-
-interface SVGElementInstanceList {
- /** @deprecated */
- readonly length: number;
- /** @deprecated */
- item(index: number): SVGElementInstance;
-}
-
-declare var SVGElementInstanceList: {
- prototype: SVGElementInstanceList;
- new(): SVGElementInstanceList;
-};
-
/** Provides access to the properties of <ellipse> elements. */
interface SVGEllipseElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
@@ -13682,6 +13244,18 @@ declare var SVGLinearGradientElement: {
new(): SVGLinearGradientElement;
};
+interface SVGMPathElement extends SVGElement, SVGURIReference {
+ addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var SVGMPathElement: {
+ prototype: SVGMPathElement;
+ new(): SVGMPathElement;
+};
+
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
readonly markerHeight: SVGAnimatedLength;
readonly markerUnits: SVGAnimatedEnumeration;
@@ -13777,11 +13351,7 @@ declare var SVGNumberList: {
};
/** Corresponds to the <path> element. */
-interface SVGPathElement extends SVGGraphicsElement {
- /** @deprecated */
- readonly pathSegList: SVGPathSegList;
- getPointAtLength(distance: number): SVGPoint;
- getTotalLength(): number;
+interface SVGPathElement extends SVGGeometryElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -13793,282 +13363,6 @@ declare var SVGPathElement: {
new(): SVGPathElement;
};
-interface SVGPathSeg {
- readonly pathSegType: number;
- readonly pathSegTypeAsLetter: string;
- readonly PATHSEG_ARC_ABS: number;
- readonly PATHSEG_ARC_REL: number;
- readonly PATHSEG_CLOSEPATH: number;
- readonly PATHSEG_CURVETO_CUBIC_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_REL: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
- readonly PATHSEG_LINETO_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
- readonly PATHSEG_LINETO_REL: number;
- readonly PATHSEG_LINETO_VERTICAL_ABS: number;
- readonly PATHSEG_LINETO_VERTICAL_REL: number;
- readonly PATHSEG_MOVETO_ABS: number;
- readonly PATHSEG_MOVETO_REL: number;
- readonly PATHSEG_UNKNOWN: number;
-}
-
-declare var SVGPathSeg: {
- prototype: SVGPathSeg;
- new(): SVGPathSeg;
- readonly PATHSEG_ARC_ABS: number;
- readonly PATHSEG_ARC_REL: number;
- readonly PATHSEG_CLOSEPATH: number;
- readonly PATHSEG_CURVETO_CUBIC_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_REL: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_REL: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;
- readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;
- readonly PATHSEG_LINETO_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;
- readonly PATHSEG_LINETO_HORIZONTAL_REL: number;
- readonly PATHSEG_LINETO_REL: number;
- readonly PATHSEG_LINETO_VERTICAL_ABS: number;
- readonly PATHSEG_LINETO_VERTICAL_REL: number;
- readonly PATHSEG_MOVETO_ABS: number;
- readonly PATHSEG_MOVETO_REL: number;
- readonly PATHSEG_UNKNOWN: number;
-};
-
-interface SVGPathSegArcAbs extends SVGPathSeg {
- angle: number;
- largeArcFlag: boolean;
- r1: number;
- r2: number;
- sweepFlag: boolean;
- x: number;
- y: number;
-}
-
-declare var SVGPathSegArcAbs: {
- prototype: SVGPathSegArcAbs;
- new(): SVGPathSegArcAbs;
-};
-
-interface SVGPathSegArcRel extends SVGPathSeg {
- angle: number;
- largeArcFlag: boolean;
- r1: number;
- r2: number;
- sweepFlag: boolean;
- x: number;
- y: number;
-}
-
-declare var SVGPathSegArcRel: {
- prototype: SVGPathSegArcRel;
- new(): SVGPathSegArcRel;
-};
-
-interface SVGPathSegClosePath extends SVGPathSeg {
-}
-
-declare var SVGPathSegClosePath: {
- prototype: SVGPathSegClosePath;
- new(): SVGPathSegClosePath;
-};
-
-interface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {
- x: number;
- x1: number;
- x2: number;
- y: number;
- y1: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicAbs: {
- prototype: SVGPathSegCurvetoCubicAbs;
- new(): SVGPathSegCurvetoCubicAbs;
-};
-
-interface SVGPathSegCurvetoCubicRel extends SVGPathSeg {
- x: number;
- x1: number;
- x2: number;
- y: number;
- y1: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicRel: {
- prototype: SVGPathSegCurvetoCubicRel;
- new(): SVGPathSegCurvetoCubicRel;
-};
-
-interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
- x: number;
- x2: number;
- y: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothAbs: {
- prototype: SVGPathSegCurvetoCubicSmoothAbs;
- new(): SVGPathSegCurvetoCubicSmoothAbs;
-};
-
-interface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {
- x: number;
- x2: number;
- y: number;
- y2: number;
-}
-
-declare var SVGPathSegCurvetoCubicSmoothRel: {
- prototype: SVGPathSegCurvetoCubicSmoothRel;
- new(): SVGPathSegCurvetoCubicSmoothRel;
-};
-
-interface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {
- x: number;
- x1: number;
- y: number;
- y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticAbs: {
- prototype: SVGPathSegCurvetoQuadraticAbs;
- new(): SVGPathSegCurvetoQuadraticAbs;
-};
-
-interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
- x: number;
- x1: number;
- y: number;
- y1: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticRel: {
- prototype: SVGPathSegCurvetoQuadraticRel;
- new(): SVGPathSegCurvetoQuadraticRel;
-};
-
-interface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothAbs: {
- prototype: SVGPathSegCurvetoQuadraticSmoothAbs;
- new(): SVGPathSegCurvetoQuadraticSmoothAbs;
-};
-
-interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegCurvetoQuadraticSmoothRel: {
- prototype: SVGPathSegCurvetoQuadraticSmoothRel;
- new(): SVGPathSegCurvetoQuadraticSmoothRel;
-};
-
-interface SVGPathSegLinetoAbs extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegLinetoAbs: {
- prototype: SVGPathSegLinetoAbs;
- new(): SVGPathSegLinetoAbs;
-};
-
-interface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {
- x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalAbs: {
- prototype: SVGPathSegLinetoHorizontalAbs;
- new(): SVGPathSegLinetoHorizontalAbs;
-};
-
-interface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {
- x: number;
-}
-
-declare var SVGPathSegLinetoHorizontalRel: {
- prototype: SVGPathSegLinetoHorizontalRel;
- new(): SVGPathSegLinetoHorizontalRel;
-};
-
-interface SVGPathSegLinetoRel extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegLinetoRel: {
- prototype: SVGPathSegLinetoRel;
- new(): SVGPathSegLinetoRel;
-};
-
-interface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {
- y: number;
-}
-
-declare var SVGPathSegLinetoVerticalAbs: {
- prototype: SVGPathSegLinetoVerticalAbs;
- new(): SVGPathSegLinetoVerticalAbs;
-};
-
-interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
- y: number;
-}
-
-declare var SVGPathSegLinetoVerticalRel: {
- prototype: SVGPathSegLinetoVerticalRel;
- new(): SVGPathSegLinetoVerticalRel;
-};
-
-interface SVGPathSegList {
- readonly numberOfItems: number;
- appendItem(newItem: SVGPathSeg): SVGPathSeg;
- clear(): void;
- getItem(index: number): SVGPathSeg;
- initialize(newItem: SVGPathSeg): SVGPathSeg;
- insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;
- removeItem(index: number): SVGPathSeg;
- replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;
-}
-
-declare var SVGPathSegList: {
- prototype: SVGPathSegList;
- new(): SVGPathSegList;
-};
-
-interface SVGPathSegMovetoAbs extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegMovetoAbs: {
- prototype: SVGPathSegMovetoAbs;
- new(): SVGPathSegMovetoAbs;
-};
-
-interface SVGPathSegMovetoRel extends SVGPathSeg {
- x: number;
- y: number;
-}
-
-declare var SVGPathSegMovetoRel: {
- prototype: SVGPathSegMovetoRel;
- new(): SVGPathSegMovetoRel;
-};
-
/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
@@ -14210,40 +13504,35 @@ declare var SVGRectElement: {
new(): SVGRectElement;
};
-interface SVGSVGElementEventMap extends SVGElementEventMap {
- "SVGUnload": Event;
- "SVGZoom": SVGZoomEvent;
+interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}
/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
-interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan {
+interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
- readonly currentTranslate: SVGPoint;
+ readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
- onunload: ((this: SVGSVGElement, ev: Event) => any) | null;
- onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
- checkEnclosure(element: SVGElement, rect: SVGRect): boolean;
- checkIntersection(element: SVGElement, rect: SVGRect): boolean;
+ checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
+ checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
- createSVGMatrix(): SVGMatrix;
+ createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
- createSVGPoint(): SVGPoint;
- createSVGRect(): SVGRect;
+ createSVGPoint(): DOMPoint;
+ createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
- createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+ createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
- getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
getCurrentTime(): number;
getElementById(elementId: string): Element;
- getEnclosureList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
- getIntersectionList(rect: SVGRect, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
+ getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
+ getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
pauseAnimations(): void;
setCurrentTime(seconds: number): void;
/** @deprecated */
@@ -14262,9 +13551,6 @@ interface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewB
declare var SVGSVGElement: {
prototype: SVGSVGElement;
new(): SVGSVGElement;
- readonly SVG_ZOOMANDPAN_DISABLE: number;
- readonly SVG_ZOOMANDPAN_MAGNIFY: number;
- readonly SVG_ZOOMANDPAN_UNKNOWN: number;
};
/** Corresponds to the SVG <script> element. */
@@ -14281,6 +13567,18 @@ declare var SVGScriptElement: {
new(): SVGScriptElement;
};
+interface SVGSetElement extends SVGAnimationElement {
+ addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
+}
+
+declare var SVGSetElement: {
+ prototype: SVGSetElement;
+ new(): SVGSetElement;
+};
+
/** Corresponds to the <stop> element. */
interface SVGStopElement extends SVGElement {
readonly offset: SVGAnimatedNumber;
@@ -14387,6 +13685,7 @@ interface SVGTextContentElement extends SVGGraphicsElement {
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
+ /** @deprecated */
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_SPACING: number;
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
@@ -14480,9 +13779,9 @@ declare var SVGTitleElement: {
/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(…) or matrix(…)) within a transform attribute. */
interface SVGTransform {
readonly angle: number;
- readonly matrix: SVGMatrix;
+ readonly matrix: DOMMatrix;
readonly type: number;
- setMatrix(matrix: SVGMatrix): void;
+ setMatrix(matrix?: DOMMatrix2DInit): void;
setRotate(angle: number, cx: number, cy: number): void;
setScale(sx: number, sy: number): void;
setSkewX(angle: number): void;
@@ -14511,16 +13810,18 @@ declare var SVGTransform: {
/** The SVGTransformList defines a list of SVGTransform objects. */
interface SVGTransformList {
+ readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
- consolidate(): SVGTransform;
- createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;
+ consolidate(): SVGTransform | null;
+ createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
getItem(index: number): SVGTransform;
initialize(newItem: SVGTransform): SVGTransform;
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
removeItem(index: number): SVGTransform;
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
+ [index: number]: SVGTransform;
}
declare var SVGTransformList: {
@@ -14565,9 +13866,7 @@ declare var SVGUseElement: {
};
/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
-interface SVGViewElement extends SVGElement, SVGFitToViewBox, SVGZoomAndPan {
- /** @deprecated */
- readonly viewTarget: SVGStringList;
+interface SVGViewElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14577,29 +13876,6 @@ interface SVGViewElement extends SVGElement, SVGFitToViewBox, SVGZoomAndPan {
declare var SVGViewElement: {
prototype: SVGViewElement;
new(): SVGViewElement;
- readonly SVG_ZOOMANDPAN_DISABLE: number;
- readonly SVG_ZOOMANDPAN_MAGNIFY: number;
- readonly SVG_ZOOMANDPAN_UNKNOWN: number;
-};
-
-interface SVGZoomAndPan {
- zoomAndPan: number;
- readonly SVG_ZOOMANDPAN_DISABLE: number;
- readonly SVG_ZOOMANDPAN_MAGNIFY: number;
- readonly SVG_ZOOMANDPAN_UNKNOWN: number;
-}
-
-interface SVGZoomEvent extends UIEvent {
- readonly newScale: number;
- readonly newTranslate: SVGPoint;
- readonly previousScale: number;
- readonly previousTranslate: SVGPoint;
- readonly zoomRectScreen: SVGRect;
-}
-
-declare var SVGZoomEvent: {
- prototype: SVGZoomEvent;
- new(): SVGZoomEvent;
};
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
@@ -14643,7 +13919,8 @@ interface ScriptProcessorNodeEventMap {
"audioprocess": AudioProcessingEvent;
}
-/** Allows the generation, processing, or analyzing of audio using JavaScript.
+/**
+ * Allows the generation, processing, or analyzing of audio using JavaScript.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
*/
interface ScriptProcessorNode extends AudioNode {
@@ -14657,6 +13934,7 @@ interface ScriptProcessorNode extends AudioNode {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
+/** @deprecated */
declare var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new(): ScriptProcessorNode;
@@ -14666,11 +13944,13 @@ declare var ScriptProcessorNode: {
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
+ readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
+ readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
@@ -14713,12 +13993,6 @@ declare var Selection: {
toString(): string;
};
-interface ServiceUIFrameContext {
- getCachedFrameMessage(key: string): string;
- postFrameMessage(key: string, data: string): void;
-}
-declare var ServiceUIFrameContext: ServiceUIFrameContext;
-
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
@@ -14754,7 +14028,7 @@ interface ServiceWorkerContainer extends EventTarget {
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
- getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>;
+ getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
@@ -14777,11 +14051,9 @@ interface ServiceWorkerRegistrationEventMap {
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
- readonly navigationPreload: NavigationPreloadManager;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
- readonly sync: SyncManager;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
@@ -14800,6 +14072,7 @@ declare var ServiceWorkerRegistration: {
};
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
+ readonly delegatesFocus: boolean;
readonly host: Element;
readonly mode: ShadowRootMode;
/**
@@ -14825,7 +14098,7 @@ interface SharedWorker extends EventTarget, AbstractWorker {
declare var SharedWorker: {
prototype: SharedWorker;
- new(scriptURL: string, options?: string | WorkerOptions): SharedWorker;
+ new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};
interface Slottable {
@@ -14855,6 +14128,7 @@ interface SourceBuffer extends EventTarget {
readonly updating: boolean;
abort(): void;
appendBuffer(data: BufferSource): void;
+ changeType(type: string): void;
remove(start: number, end: number): void;
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -14889,74 +14163,6 @@ declare var SourceBufferList: {
new(): SourceBufferList;
};
-interface SpeechGrammar {
- src: string;
- weight: number;
-}
-
-declare var SpeechGrammar: {
- prototype: SpeechGrammar;
- new(): SpeechGrammar;
-};
-
-interface SpeechGrammarList {
- readonly length: number;
- addFromString(string: string, weight?: number): void;
- addFromURI(src: string, weight?: number): void;
- item(index: number): SpeechGrammar;
- [index: number]: SpeechGrammar;
-}
-
-declare var SpeechGrammarList: {
- prototype: SpeechGrammarList;
- new(): SpeechGrammarList;
-};
-
-interface SpeechRecognitionEventMap {
- "audioend": Event;
- "audiostart": Event;
- "end": Event;
- "error": SpeechRecognitionErrorEvent;
- "nomatch": SpeechRecognitionEvent;
- "result": SpeechRecognitionEvent;
- "soundend": Event;
- "soundstart": Event;
- "speechend": Event;
- "speechstart": Event;
- "start": Event;
-}
-
-interface SpeechRecognition extends EventTarget {
- continuous: boolean;
- grammars: SpeechGrammarList;
- interimResults: boolean;
- lang: string;
- maxAlternatives: number;
- onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null;
- onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null;
- onend: ((this: SpeechRecognition, ev: Event) => any) | null;
- onerror: ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => any) | null;
- onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
- onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
- onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null;
- onsoundstart: ((this: SpeechRecognition, ev: Event) => any) | null;
- onspeechend: ((this: SpeechRecognition, ev: Event) => any) | null;
- onspeechstart: ((this: SpeechRecognition, ev: Event) => any) | null;
- onstart: ((this: SpeechRecognition, ev: Event) => any) | null;
- abort(): void;
- start(): void;
- stop(): void;
- addEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var SpeechRecognition: {
- prototype: SpeechRecognition;
- new(): SpeechRecognition;
-};
-
interface SpeechRecognitionAlternative {
readonly confidence: number;
readonly transcript: string;
@@ -14967,26 +14173,6 @@ declare var SpeechRecognitionAlternative: {
new(): SpeechRecognitionAlternative;
};
-interface SpeechRecognitionErrorEvent extends Event {
- readonly error: SpeechRecognitionErrorCode;
- readonly message: string;
-}
-
-declare var SpeechRecognitionErrorEvent: {
- prototype: SpeechRecognitionErrorEvent;
- new(type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent;
-};
-
-interface SpeechRecognitionEvent extends Event {
- readonly resultIndex: number;
- readonly results: SpeechRecognitionResultList;
-}
-
-declare var SpeechRecognitionEvent: {
- prototype: SpeechRecognitionEvent;
- new(type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent;
-};
-
interface SpeechRecognitionResult {
readonly isFinal: boolean;
readonly length: number;
@@ -15130,29 +14316,35 @@ declare var StereoPannerNode: {
/** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
interface Storage {
/**
- * Returns the number of key/value pairs currently present in the list associated with the object.
+ * Returns the number of key/value pairs.
*/
readonly length: number;
/**
- * Empties the list associated with the object of all key/value pairs, if there are any.
+ * Removes all key/value pairs, if there are any.
+ *
+ * Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
clear(): void;
/**
- * Returns the current value associated with the given key, or null if the given key does not exist in the list associated with the object.
+ * Returns the current value associated with the given key, or null if the given key does not exist.
*/
getItem(key: string): string | null;
/**
- * Returns the name of the nth key in the list, or null if n is greater than or equal to the number of key/value pairs in the object.
+ * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
*/
key(index: number): string | null;
/**
- * Removes the key/value pair with the given key from the list associated with the object, if a key/value pair with the given key exists.
+ * Removes the key/value pair with the given key, if a key/value pair with the given key exists.
+ *
+ * Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
*
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
+ *
+ * Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
setItem(key: string, value: string): void;
[name: string]: any;
@@ -15185,6 +14377,7 @@ interface StorageEvent extends Event {
* Returns the URL of the document whose storage item changed.
*/
readonly url: string;
+ initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}
declare var StorageEvent: {
@@ -15203,16 +14396,12 @@ declare var StorageManager: {
new(): StorageManager;
};
+/** @deprecated */
interface StyleMedia {
- readonly type: string;
+ type: string;
matchMedium(mediaquery: string): boolean;
}
-declare var StyleMedia: {
- prototype: StyleMedia;
- new(): StyleMedia;
-};
-
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
interface StyleSheet {
disabled: boolean;
@@ -15241,26 +14430,36 @@ declare var StyleSheetList: {
new(): StyleSheetList;
};
+interface SubmitEvent extends Event {
+ /**
+ * Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.
+ */
+ readonly submitter: HTMLElement | null;
+}
+
+declare var SubmitEvent: {
+ prototype: SubmitEvent;
+ new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
+};
+
/** 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). */
interface SubtleCrypto {
- decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): Promise<ArrayBuffer>;
- deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
- deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- digest(algorithm: AlgorithmIdentifier, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): Promise<ArrayBuffer>;
- encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): Promise<ArrayBuffer>;
+ decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
+ deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
+ deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
+ digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
+ encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
- exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): Promise<ArrayBuffer>;
- exportKey(format: string, key: CryptoKey): Promise<JsonWebKey | ArrayBuffer>;
- generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
+ exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
+ generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
- importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): Promise<ArrayBuffer>;
- unwrapKey(format: "raw" | "pkcs8" | "spki" | "jwk" | string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
- verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): Promise<boolean>;
- wrapKey(format: "raw" | "pkcs8" | "spki" | "jwk" | string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams): Promise<ArrayBuffer>;
+ importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
+ importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
+ sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
+ unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
+ verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
+ wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
@@ -15268,17 +14467,6 @@ declare var SubtleCrypto: {
new(): SubtleCrypto;
};
-/** This ServiceWorker API interface provides an interface for registering and listing sync registrations. */
-interface SyncManager {
- getTags(): Promise<string[]>;
- register(tag: string): Promise<void>;
-}
-
-declare var SyncManager: {
- prototype: SyncManager;
- new(): SyncManager;
-};
-
/** 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. */
interface Text extends CharacterData, Slottable {
readonly assignedSlot: HTMLSlotElement | null;
@@ -15379,36 +14567,6 @@ declare var TextEncoderStream: {
new(): TextEncoderStream;
};
-interface TextEvent extends UIEvent {
- readonly data: string;
- initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void;
- readonly DOM_INPUT_METHOD_DROP: number;
- readonly DOM_INPUT_METHOD_HANDWRITING: number;
- readonly DOM_INPUT_METHOD_IME: number;
- readonly DOM_INPUT_METHOD_KEYBOARD: number;
- readonly DOM_INPUT_METHOD_MULTIMODAL: number;
- readonly DOM_INPUT_METHOD_OPTION: number;
- readonly DOM_INPUT_METHOD_PASTE: number;
- readonly DOM_INPUT_METHOD_SCRIPT: number;
- readonly DOM_INPUT_METHOD_UNKNOWN: number;
- readonly DOM_INPUT_METHOD_VOICE: number;
-}
-
-declare var TextEvent: {
- prototype: TextEvent;
- new(): TextEvent;
- readonly DOM_INPUT_METHOD_DROP: number;
- readonly DOM_INPUT_METHOD_HANDWRITING: number;
- readonly DOM_INPUT_METHOD_IME: number;
- readonly DOM_INPUT_METHOD_KEYBOARD: number;
- readonly DOM_INPUT_METHOD_MULTIMODAL: number;
- readonly DOM_INPUT_METHOD_OPTION: number;
- readonly DOM_INPUT_METHOD_PASTE: number;
- readonly DOM_INPUT_METHOD_SCRIPT: number;
- readonly DOM_INPUT_METHOD_UNKNOWN: number;
- readonly DOM_INPUT_METHOD_VOICE: number;
-};
-
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/**
@@ -15430,6 +14588,14 @@ interface TextMetrics {
/**
* Returns the measurement described below.
*/
+ readonly fontBoundingBoxAscent: number;
+ /**
+ * Returns the measurement described below.
+ */
+ readonly fontBoundingBoxDescent: number;
+ /**
+ * Returns the measurement described below.
+ */
readonly width: number;
}
@@ -15620,8 +14786,6 @@ declare var TimeRanges: {
/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
interface Touch {
- readonly altitudeAngle: number;
- readonly azimuthAngle: number;
readonly clientX: number;
readonly clientY: number;
readonly force: number;
@@ -15634,7 +14798,6 @@ interface Touch {
readonly screenX: number;
readonly screenY: number;
readonly target: EventTarget;
- readonly touchType: TouchType;
}
declare var Touch: {
@@ -15695,7 +14858,7 @@ declare var TransformStream: {
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
- enqueue(chunk: O): void;
+ enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
@@ -15743,6 +14906,8 @@ interface UIEvent extends Event {
readonly view: Window | null;
/** @deprecated */
readonly which: number;
+ /** @deprecated */
+ initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}
declare var UIEvent: {
@@ -15770,7 +14935,7 @@ interface URL {
declare var URL: {
prototype: URL;
- new(url: string, base?: string | URL): URL;
+ new(url: string | URL, base?: string | URL): URL;
createObjectURL(object: any): string;
revokeObjectURL(url: string): void;
};
@@ -15817,116 +14982,6 @@ declare var URLSearchParams: {
toString(): string;
};
-/** This WebVR API interface represents any VR device supported by this API. It includes generic information such as device IDs and descriptions, as well as methods for starting to present a VR scene, retrieving eye parameters and display capabilities, and other important functionality. */
-interface VRDisplay extends EventTarget {
- readonly capabilities: VRDisplayCapabilities;
- depthFar: number;
- depthNear: number;
- readonly displayId: number;
- readonly displayName: string;
- readonly isConnected: boolean;
- readonly isPresenting: boolean;
- readonly stageParameters: VRStageParameters | null;
- cancelAnimationFrame(handle: number): void;
- exitPresent(): Promise<void>;
- getEyeParameters(whichEye: string): VREyeParameters;
- getFrameData(frameData: VRFrameData): boolean;
- getLayers(): VRLayer[];
- /** @deprecated */
- getPose(): VRPose;
- requestAnimationFrame(callback: FrameRequestCallback): number;
- requestPresent(layers: VRLayer[]): Promise<void>;
- resetPose(): void;
- submitFrame(pose?: VRPose): void;
-}
-
-declare var VRDisplay: {
- prototype: VRDisplay;
- new(): VRDisplay;
-};
-
-/** This WebVR API interface describes the capabilities of a VRDisplay — its features can be used to perform VR device capability tests, for example can it return position information. */
-interface VRDisplayCapabilities {
- readonly canPresent: boolean;
- readonly hasExternalDisplay: boolean;
- readonly hasOrientation: boolean;
- readonly hasPosition: boolean;
- readonly maxLayers: number;
-}
-
-declare var VRDisplayCapabilities: {
- prototype: VRDisplayCapabilities;
- new(): VRDisplayCapabilities;
-};
-
-/** This WebVR API interface represents represents the event object of WebVR-related events (see the list of WebVR window extensions). */
-interface VRDisplayEvent extends Event {
- readonly display: VRDisplay;
- readonly reason: VRDisplayEventReason | null;
-}
-
-declare var VRDisplayEvent: {
- prototype: VRDisplayEvent;
- new(type: string, eventInitDict: VRDisplayEventInit): VRDisplayEvent;
-};
-
-/** This WebVR API interface represents all the information required to correctly render a scene for a given eye, including field of view information. */
-interface VREyeParameters {
- /** @deprecated */
- readonly fieldOfView: VRFieldOfView;
- readonly offset: Float32Array;
- readonly renderHeight: number;
- readonly renderWidth: number;
-}
-
-declare var VREyeParameters: {
- prototype: VREyeParameters;
- new(): VREyeParameters;
-};
-
-/** This WebVR API interface represents a field of view defined by 4 different degree values describing the view from a center point. */
-interface VRFieldOfView {
- readonly downDegrees: number;
- readonly leftDegrees: number;
- readonly rightDegrees: number;
- readonly upDegrees: number;
-}
-
-declare var VRFieldOfView: {
- prototype: VRFieldOfView;
- new(): VRFieldOfView;
-};
-
-/** This WebVR API interface represents all the information needed to render a single frame of a VR scene; constructed by VRDisplay.getFrameData(). */
-interface VRFrameData {
- readonly leftProjectionMatrix: Float32Array;
- readonly leftViewMatrix: Float32Array;
- readonly pose: VRPose;
- readonly rightProjectionMatrix: Float32Array;
- readonly rightViewMatrix: Float32Array;
- readonly timestamp: number;
-}
-
-declare var VRFrameData: {
- prototype: VRFrameData;
- new(): VRFrameData;
-};
-
-/** This WebVR API interface represents the state of a VR sensor at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */
-interface VRPose {
- readonly angularAcceleration: Float32Array | null;
- readonly angularVelocity: Float32Array | null;
- readonly linearAcceleration: Float32Array | null;
- readonly linearVelocity: Float32Array | null;
- readonly orientation: Float32Array | null;
- readonly position: Float32Array | null;
-}
-
-declare var VRPose: {
- prototype: VRPose;
- new(): VRPose;
-};
-
interface VTTCue extends TextTrackCue {
align: AlignSetting;
line: LineAndPositionSetting;
@@ -15988,7 +15043,9 @@ declare var ValidityState: {
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
interface VideoPlaybackQuality {
- readonly creationTime: number;
+ /** @deprecated */
+ readonly corruptedVideoFrames: number;
+ readonly creationTime: DOMHighResTimeStamp;
readonly droppedVideoFrames: number;
readonly totalVideoFrames: number;
}
@@ -15999,7 +15056,7 @@ declare var VideoPlaybackQuality: {
};
interface VisualViewportEventMap {
- "resize": UIEvent;
+ "resize": Event;
"scroll": Event;
}
@@ -16007,7 +15064,7 @@ interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
- onresize: ((this: VisualViewport, ev: UIEvent) => any) | null;
+ onresize: ((this: VisualViewport, ev: Event) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
@@ -16062,6 +15119,30 @@ interface WEBGL_compressed_texture_astc {
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
}
+interface WEBGL_compressed_texture_etc {
+ readonly COMPRESSED_R11_EAC: GLenum;
+ readonly COMPRESSED_RG11_EAC: GLenum;
+ readonly COMPRESSED_RGB8_ETC2: GLenum;
+ readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
+ readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
+ readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
+ readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
+ readonly COMPRESSED_SRGB8_ETC2: GLenum;
+ readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
+}
+
+interface WEBGL_compressed_texture_etc1 {
+ readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
+}
+
+interface WEBGL_compressed_texture_pvrtc {
+ readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
+ readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
+ readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
+ readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
+}
+
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
@@ -16152,6 +15233,269 @@ interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2Rende
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
+ readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
+ readonly ALREADY_SIGNALED: GLenum;
+ readonly ANY_SAMPLES_PASSED: GLenum;
+ readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
+ readonly COLOR: GLenum;
+ readonly COLOR_ATTACHMENT1: GLenum;
+ readonly COLOR_ATTACHMENT10: GLenum;
+ readonly COLOR_ATTACHMENT11: GLenum;
+ readonly COLOR_ATTACHMENT12: GLenum;
+ readonly COLOR_ATTACHMENT13: GLenum;
+ readonly COLOR_ATTACHMENT14: GLenum;
+ readonly COLOR_ATTACHMENT15: GLenum;
+ readonly COLOR_ATTACHMENT2: GLenum;
+ readonly COLOR_ATTACHMENT3: GLenum;
+ readonly COLOR_ATTACHMENT4: GLenum;
+ readonly COLOR_ATTACHMENT5: GLenum;
+ readonly COLOR_ATTACHMENT6: GLenum;
+ readonly COLOR_ATTACHMENT7: GLenum;
+ readonly COLOR_ATTACHMENT8: GLenum;
+ readonly COLOR_ATTACHMENT9: GLenum;
+ readonly COMPARE_REF_TO_TEXTURE: GLenum;
+ readonly CONDITION_SATISFIED: GLenum;
+ readonly COPY_READ_BUFFER: GLenum;
+ readonly COPY_READ_BUFFER_BINDING: GLenum;
+ readonly COPY_WRITE_BUFFER: GLenum;
+ readonly COPY_WRITE_BUFFER_BINDING: GLenum;
+ readonly CURRENT_QUERY: GLenum;
+ readonly DEPTH: GLenum;
+ readonly DEPTH24_STENCIL8: GLenum;
+ readonly DEPTH32F_STENCIL8: GLenum;
+ readonly DEPTH_COMPONENT24: GLenum;
+ readonly DEPTH_COMPONENT32F: GLenum;
+ readonly DRAW_BUFFER0: GLenum;
+ readonly DRAW_BUFFER1: GLenum;
+ readonly DRAW_BUFFER10: GLenum;
+ readonly DRAW_BUFFER11: GLenum;
+ readonly DRAW_BUFFER12: GLenum;
+ readonly DRAW_BUFFER13: GLenum;
+ readonly DRAW_BUFFER14: GLenum;
+ readonly DRAW_BUFFER15: GLenum;
+ readonly DRAW_BUFFER2: GLenum;
+ readonly DRAW_BUFFER3: GLenum;
+ readonly DRAW_BUFFER4: GLenum;
+ readonly DRAW_BUFFER5: GLenum;
+ readonly DRAW_BUFFER6: GLenum;
+ readonly DRAW_BUFFER7: GLenum;
+ readonly DRAW_BUFFER8: GLenum;
+ readonly DRAW_BUFFER9: GLenum;
+ readonly DRAW_FRAMEBUFFER: GLenum;
+ readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
+ readonly DYNAMIC_COPY: GLenum;
+ readonly DYNAMIC_READ: GLenum;
+ readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
+ readonly FLOAT_MAT2x3: GLenum;
+ readonly FLOAT_MAT2x4: GLenum;
+ readonly FLOAT_MAT3x2: GLenum;
+ readonly FLOAT_MAT3x4: GLenum;
+ readonly FLOAT_MAT4x2: GLenum;
+ readonly FLOAT_MAT4x3: GLenum;
+ readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
+ readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
+ readonly FRAMEBUFFER_DEFAULT: GLenum;
+ readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
+ readonly HALF_FLOAT: GLenum;
+ readonly INTERLEAVED_ATTRIBS: GLenum;
+ readonly INT_2_10_10_10_REV: GLenum;
+ readonly INT_SAMPLER_2D: GLenum;
+ readonly INT_SAMPLER_2D_ARRAY: GLenum;
+ readonly INT_SAMPLER_3D: GLenum;
+ readonly INT_SAMPLER_CUBE: GLenum;
+ readonly INVALID_INDEX: GLenum;
+ readonly MAX: GLenum;
+ readonly MAX_3D_TEXTURE_SIZE: GLenum;
+ readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
+ readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
+ readonly MAX_COLOR_ATTACHMENTS: GLenum;
+ readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
+ readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
+ readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
+ readonly MAX_DRAW_BUFFERS: GLenum;
+ readonly MAX_ELEMENTS_INDICES: GLenum;
+ readonly MAX_ELEMENTS_VERTICES: GLenum;
+ readonly MAX_ELEMENT_INDEX: GLenum;
+ readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
+ readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
+ readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
+ readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
+ readonly MAX_SAMPLES: GLenum;
+ readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
+ readonly MAX_TEXTURE_LOD_BIAS: GLenum;
+ readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
+ readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
+ readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
+ readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
+ readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
+ readonly MAX_VARYING_COMPONENTS: GLenum;
+ readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
+ readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
+ readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
+ readonly MIN: GLenum;
+ readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
+ readonly OBJECT_TYPE: GLenum;
+ readonly PACK_ROW_LENGTH: GLenum;
+ readonly PACK_SKIP_PIXELS: GLenum;
+ readonly PACK_SKIP_ROWS: GLenum;
+ readonly PIXEL_PACK_BUFFER: GLenum;
+ readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
+ readonly PIXEL_UNPACK_BUFFER: GLenum;
+ readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
+ readonly QUERY_RESULT: GLenum;
+ readonly QUERY_RESULT_AVAILABLE: GLenum;
+ readonly R11F_G11F_B10F: GLenum;
+ readonly R16F: GLenum;
+ readonly R16I: GLenum;
+ readonly R16UI: GLenum;
+ readonly R32F: GLenum;
+ readonly R32I: GLenum;
+ readonly R32UI: GLenum;
+ readonly R8: GLenum;
+ readonly R8I: GLenum;
+ readonly R8UI: GLenum;
+ readonly R8_SNORM: GLenum;
+ readonly RASTERIZER_DISCARD: GLenum;
+ readonly READ_BUFFER: GLenum;
+ readonly READ_FRAMEBUFFER: GLenum;
+ readonly READ_FRAMEBUFFER_BINDING: GLenum;
+ readonly RED: GLenum;
+ readonly RED_INTEGER: GLenum;
+ readonly RENDERBUFFER_SAMPLES: GLenum;
+ readonly RG: GLenum;
+ readonly RG16F: GLenum;
+ readonly RG16I: GLenum;
+ readonly RG16UI: GLenum;
+ readonly RG32F: GLenum;
+ readonly RG32I: GLenum;
+ readonly RG32UI: GLenum;
+ readonly RG8: GLenum;
+ readonly RG8I: GLenum;
+ readonly RG8UI: GLenum;
+ readonly RG8_SNORM: GLenum;
+ readonly RGB10_A2: GLenum;
+ readonly RGB10_A2UI: GLenum;
+ readonly RGB16F: GLenum;
+ readonly RGB16I: GLenum;
+ readonly RGB16UI: GLenum;
+ readonly RGB32F: GLenum;
+ readonly RGB32I: GLenum;
+ readonly RGB32UI: GLenum;
+ readonly RGB8: GLenum;
+ readonly RGB8I: GLenum;
+ readonly RGB8UI: GLenum;
+ readonly RGB8_SNORM: GLenum;
+ readonly RGB9_E5: GLenum;
+ readonly RGBA16F: GLenum;
+ readonly RGBA16I: GLenum;
+ readonly RGBA16UI: GLenum;
+ readonly RGBA32F: GLenum;
+ readonly RGBA32I: GLenum;
+ readonly RGBA32UI: GLenum;
+ readonly RGBA8: GLenum;
+ readonly RGBA8I: GLenum;
+ readonly RGBA8UI: GLenum;
+ readonly RGBA8_SNORM: GLenum;
+ readonly RGBA_INTEGER: GLenum;
+ readonly RGB_INTEGER: GLenum;
+ readonly RG_INTEGER: GLenum;
+ readonly SAMPLER_2D_ARRAY: GLenum;
+ readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
+ readonly SAMPLER_2D_SHADOW: GLenum;
+ readonly SAMPLER_3D: GLenum;
+ readonly SAMPLER_BINDING: GLenum;
+ readonly SAMPLER_CUBE_SHADOW: GLenum;
+ readonly SEPARATE_ATTRIBS: GLenum;
+ readonly SIGNALED: GLenum;
+ readonly SIGNED_NORMALIZED: GLenum;
+ readonly SRGB: GLenum;
+ readonly SRGB8: GLenum;
+ readonly SRGB8_ALPHA8: GLenum;
+ readonly STATIC_COPY: GLenum;
+ readonly STATIC_READ: GLenum;
+ readonly STENCIL: GLenum;
+ readonly STREAM_COPY: GLenum;
+ readonly STREAM_READ: GLenum;
+ readonly SYNC_CONDITION: GLenum;
+ readonly SYNC_FENCE: GLenum;
+ readonly SYNC_FLAGS: GLenum;
+ readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
+ readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
+ readonly SYNC_STATUS: GLenum;
+ readonly TEXTURE_2D_ARRAY: GLenum;
+ readonly TEXTURE_3D: GLenum;
+ readonly TEXTURE_BASE_LEVEL: GLenum;
+ readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
+ readonly TEXTURE_BINDING_3D: GLenum;
+ readonly TEXTURE_COMPARE_FUNC: GLenum;
+ readonly TEXTURE_COMPARE_MODE: GLenum;
+ readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
+ readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
+ readonly TEXTURE_MAX_LEVEL: GLenum;
+ readonly TEXTURE_MAX_LOD: GLenum;
+ readonly TEXTURE_MIN_LOD: GLenum;
+ readonly TEXTURE_WRAP_R: GLenum;
+ readonly TIMEOUT_EXPIRED: GLenum;
+ readonly TIMEOUT_IGNORED: GLint64;
+ readonly TRANSFORM_FEEDBACK: GLenum;
+ readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
+ readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
+ readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
+ readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
+ readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
+ readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
+ readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
+ readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
+ readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
+ readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
+ readonly UNIFORM_ARRAY_STRIDE: GLenum;
+ readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
+ readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
+ readonly UNIFORM_BLOCK_BINDING: GLenum;
+ readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
+ readonly UNIFORM_BLOCK_INDEX: GLenum;
+ readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
+ readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
+ readonly UNIFORM_BUFFER: GLenum;
+ readonly UNIFORM_BUFFER_BINDING: GLenum;
+ readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
+ readonly UNIFORM_BUFFER_SIZE: GLenum;
+ readonly UNIFORM_BUFFER_START: GLenum;
+ readonly UNIFORM_IS_ROW_MAJOR: GLenum;
+ readonly UNIFORM_MATRIX_STRIDE: GLenum;
+ readonly UNIFORM_OFFSET: GLenum;
+ readonly UNIFORM_SIZE: GLenum;
+ readonly UNIFORM_TYPE: GLenum;
+ readonly UNPACK_IMAGE_HEIGHT: GLenum;
+ readonly UNPACK_ROW_LENGTH: GLenum;
+ readonly UNPACK_SKIP_IMAGES: GLenum;
+ readonly UNPACK_SKIP_PIXELS: GLenum;
+ readonly UNPACK_SKIP_ROWS: GLenum;
+ readonly UNSIGNALED: GLenum;
+ readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
+ readonly UNSIGNED_INT_24_8: GLenum;
+ readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
+ readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
+ readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
+ readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
+ readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
+ readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
+ readonly UNSIGNED_INT_VEC2: GLenum;
+ readonly UNSIGNED_INT_VEC3: GLenum;
+ readonly UNSIGNED_INT_VEC4: GLenum;
+ readonly UNSIGNED_NORMALIZED: GLenum;
+ readonly VERTEX_ARRAY_BINDING: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
+ readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
+ readonly WAIT_FAILED: GLenum;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
@@ -16448,269 +15792,6 @@ declare var WebGL2RenderingContext: {
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
- readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
- readonly ALREADY_SIGNALED: GLenum;
- readonly ANY_SAMPLES_PASSED: GLenum;
- readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
- readonly COLOR: GLenum;
- readonly COLOR_ATTACHMENT1: GLenum;
- readonly COLOR_ATTACHMENT10: GLenum;
- readonly COLOR_ATTACHMENT11: GLenum;
- readonly COLOR_ATTACHMENT12: GLenum;
- readonly COLOR_ATTACHMENT13: GLenum;
- readonly COLOR_ATTACHMENT14: GLenum;
- readonly COLOR_ATTACHMENT15: GLenum;
- readonly COLOR_ATTACHMENT2: GLenum;
- readonly COLOR_ATTACHMENT3: GLenum;
- readonly COLOR_ATTACHMENT4: GLenum;
- readonly COLOR_ATTACHMENT5: GLenum;
- readonly COLOR_ATTACHMENT6: GLenum;
- readonly COLOR_ATTACHMENT7: GLenum;
- readonly COLOR_ATTACHMENT8: GLenum;
- readonly COLOR_ATTACHMENT9: GLenum;
- readonly COMPARE_REF_TO_TEXTURE: GLenum;
- readonly CONDITION_SATISFIED: GLenum;
- readonly COPY_READ_BUFFER: GLenum;
- readonly COPY_READ_BUFFER_BINDING: GLenum;
- readonly COPY_WRITE_BUFFER: GLenum;
- readonly COPY_WRITE_BUFFER_BINDING: GLenum;
- readonly CURRENT_QUERY: GLenum;
- readonly DEPTH: GLenum;
- readonly DEPTH24_STENCIL8: GLenum;
- readonly DEPTH32F_STENCIL8: GLenum;
- readonly DEPTH_COMPONENT24: GLenum;
- readonly DEPTH_COMPONENT32F: GLenum;
- readonly DRAW_BUFFER0: GLenum;
- readonly DRAW_BUFFER1: GLenum;
- readonly DRAW_BUFFER10: GLenum;
- readonly DRAW_BUFFER11: GLenum;
- readonly DRAW_BUFFER12: GLenum;
- readonly DRAW_BUFFER13: GLenum;
- readonly DRAW_BUFFER14: GLenum;
- readonly DRAW_BUFFER15: GLenum;
- readonly DRAW_BUFFER2: GLenum;
- readonly DRAW_BUFFER3: GLenum;
- readonly DRAW_BUFFER4: GLenum;
- readonly DRAW_BUFFER5: GLenum;
- readonly DRAW_BUFFER6: GLenum;
- readonly DRAW_BUFFER7: GLenum;
- readonly DRAW_BUFFER8: GLenum;
- readonly DRAW_BUFFER9: GLenum;
- readonly DRAW_FRAMEBUFFER: GLenum;
- readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
- readonly DYNAMIC_COPY: GLenum;
- readonly DYNAMIC_READ: GLenum;
- readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
- readonly FLOAT_MAT2x3: GLenum;
- readonly FLOAT_MAT2x4: GLenum;
- readonly FLOAT_MAT3x2: GLenum;
- readonly FLOAT_MAT3x4: GLenum;
- readonly FLOAT_MAT4x2: GLenum;
- readonly FLOAT_MAT4x3: GLenum;
- readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
- readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
- readonly FRAMEBUFFER_DEFAULT: GLenum;
- readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
- readonly HALF_FLOAT: GLenum;
- readonly INTERLEAVED_ATTRIBS: GLenum;
- readonly INT_2_10_10_10_REV: GLenum;
- readonly INT_SAMPLER_2D: GLenum;
- readonly INT_SAMPLER_2D_ARRAY: GLenum;
- readonly INT_SAMPLER_3D: GLenum;
- readonly INT_SAMPLER_CUBE: GLenum;
- readonly INVALID_INDEX: GLenum;
- readonly MAX: GLenum;
- readonly MAX_3D_TEXTURE_SIZE: GLenum;
- readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
- readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
- readonly MAX_COLOR_ATTACHMENTS: GLenum;
- readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
- readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
- readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
- readonly MAX_DRAW_BUFFERS: GLenum;
- readonly MAX_ELEMENTS_INDICES: GLenum;
- readonly MAX_ELEMENTS_VERTICES: GLenum;
- readonly MAX_ELEMENT_INDEX: GLenum;
- readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
- readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
- readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
- readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
- readonly MAX_SAMPLES: GLenum;
- readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
- readonly MAX_TEXTURE_LOD_BIAS: GLenum;
- readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
- readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
- readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
- readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
- readonly MAX_VARYING_COMPONENTS: GLenum;
- readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
- readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
- readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
- readonly MIN: GLenum;
- readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
- readonly OBJECT_TYPE: GLenum;
- readonly PACK_ROW_LENGTH: GLenum;
- readonly PACK_SKIP_PIXELS: GLenum;
- readonly PACK_SKIP_ROWS: GLenum;
- readonly PIXEL_PACK_BUFFER: GLenum;
- readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
- readonly PIXEL_UNPACK_BUFFER: GLenum;
- readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
- readonly QUERY_RESULT: GLenum;
- readonly QUERY_RESULT_AVAILABLE: GLenum;
- readonly R11F_G11F_B10F: GLenum;
- readonly R16F: GLenum;
- readonly R16I: GLenum;
- readonly R16UI: GLenum;
- readonly R32F: GLenum;
- readonly R32I: GLenum;
- readonly R32UI: GLenum;
- readonly R8: GLenum;
- readonly R8I: GLenum;
- readonly R8UI: GLenum;
- readonly R8_SNORM: GLenum;
- readonly RASTERIZER_DISCARD: GLenum;
- readonly READ_BUFFER: GLenum;
- readonly READ_FRAMEBUFFER: GLenum;
- readonly READ_FRAMEBUFFER_BINDING: GLenum;
- readonly RED: GLenum;
- readonly RED_INTEGER: GLenum;
- readonly RENDERBUFFER_SAMPLES: GLenum;
- readonly RG: GLenum;
- readonly RG16F: GLenum;
- readonly RG16I: GLenum;
- readonly RG16UI: GLenum;
- readonly RG32F: GLenum;
- readonly RG32I: GLenum;
- readonly RG32UI: GLenum;
- readonly RG8: GLenum;
- readonly RG8I: GLenum;
- readonly RG8UI: GLenum;
- readonly RG8_SNORM: GLenum;
- readonly RGB10_A2: GLenum;
- readonly RGB10_A2UI: GLenum;
- readonly RGB16F: GLenum;
- readonly RGB16I: GLenum;
- readonly RGB16UI: GLenum;
- readonly RGB32F: GLenum;
- readonly RGB32I: GLenum;
- readonly RGB32UI: GLenum;
- readonly RGB8: GLenum;
- readonly RGB8I: GLenum;
- readonly RGB8UI: GLenum;
- readonly RGB8_SNORM: GLenum;
- readonly RGB9_E5: GLenum;
- readonly RGBA16F: GLenum;
- readonly RGBA16I: GLenum;
- readonly RGBA16UI: GLenum;
- readonly RGBA32F: GLenum;
- readonly RGBA32I: GLenum;
- readonly RGBA32UI: GLenum;
- readonly RGBA8: GLenum;
- readonly RGBA8I: GLenum;
- readonly RGBA8UI: GLenum;
- readonly RGBA8_SNORM: GLenum;
- readonly RGBA_INTEGER: GLenum;
- readonly RGB_INTEGER: GLenum;
- readonly RG_INTEGER: GLenum;
- readonly SAMPLER_2D_ARRAY: GLenum;
- readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
- readonly SAMPLER_2D_SHADOW: GLenum;
- readonly SAMPLER_3D: GLenum;
- readonly SAMPLER_BINDING: GLenum;
- readonly SAMPLER_CUBE_SHADOW: GLenum;
- readonly SEPARATE_ATTRIBS: GLenum;
- readonly SIGNALED: GLenum;
- readonly SIGNED_NORMALIZED: GLenum;
- readonly SRGB: GLenum;
- readonly SRGB8: GLenum;
- readonly SRGB8_ALPHA8: GLenum;
- readonly STATIC_COPY: GLenum;
- readonly STATIC_READ: GLenum;
- readonly STENCIL: GLenum;
- readonly STREAM_COPY: GLenum;
- readonly STREAM_READ: GLenum;
- readonly SYNC_CONDITION: GLenum;
- readonly SYNC_FENCE: GLenum;
- readonly SYNC_FLAGS: GLenum;
- readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
- readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
- readonly SYNC_STATUS: GLenum;
- readonly TEXTURE_2D_ARRAY: GLenum;
- readonly TEXTURE_3D: GLenum;
- readonly TEXTURE_BASE_LEVEL: GLenum;
- readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
- readonly TEXTURE_BINDING_3D: GLenum;
- readonly TEXTURE_COMPARE_FUNC: GLenum;
- readonly TEXTURE_COMPARE_MODE: GLenum;
- readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
- readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
- readonly TEXTURE_MAX_LEVEL: GLenum;
- readonly TEXTURE_MAX_LOD: GLenum;
- readonly TEXTURE_MIN_LOD: GLenum;
- readonly TEXTURE_WRAP_R: GLenum;
- readonly TIMEOUT_EXPIRED: GLenum;
- readonly TIMEOUT_IGNORED: GLint64;
- readonly TRANSFORM_FEEDBACK: GLenum;
- readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
- readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
- readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
- readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
- readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
- readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
- readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
- readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
- readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
- readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
- readonly UNIFORM_ARRAY_STRIDE: GLenum;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
- readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
- readonly UNIFORM_BLOCK_BINDING: GLenum;
- readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
- readonly UNIFORM_BLOCK_INDEX: GLenum;
- readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
- readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
- readonly UNIFORM_BUFFER: GLenum;
- readonly UNIFORM_BUFFER_BINDING: GLenum;
- readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
- readonly UNIFORM_BUFFER_SIZE: GLenum;
- readonly UNIFORM_BUFFER_START: GLenum;
- readonly UNIFORM_IS_ROW_MAJOR: GLenum;
- readonly UNIFORM_MATRIX_STRIDE: GLenum;
- readonly UNIFORM_OFFSET: GLenum;
- readonly UNIFORM_SIZE: GLenum;
- readonly UNIFORM_TYPE: GLenum;
- readonly UNPACK_IMAGE_HEIGHT: GLenum;
- readonly UNPACK_ROW_LENGTH: GLenum;
- readonly UNPACK_SKIP_IMAGES: GLenum;
- readonly UNPACK_SKIP_PIXELS: GLenum;
- readonly UNPACK_SKIP_ROWS: GLenum;
- readonly UNSIGNALED: GLenum;
- readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
- readonly UNSIGNED_INT_24_8: GLenum;
- readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
- readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
- readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
- readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
- readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
- readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
- readonly UNSIGNED_INT_VEC2: GLenum;
- readonly UNSIGNED_INT_VEC3: GLenum;
- readonly UNSIGNED_INT_VEC4: GLenum;
- readonly UNSIGNED_NORMALIZED: GLenum;
- readonly VERTEX_ARRAY_BINDING: GLenum;
- readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
- readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
- readonly WAIT_FAILED: GLenum;
};
interface WebGL2RenderingContextBase {
@@ -17482,7 +16563,7 @@ declare var WebGLRenderingContext: {
};
interface WebGLRenderingContextBase {
- readonly canvas: HTMLCanvasElement | OffscreenCanvas;
+ readonly canvas: HTMLCanvasElement;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
@@ -17543,13 +16624,21 @@ interface WebGLRenderingContextBase {
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
+ getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
+ getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
+ getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
+ getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
+ getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
+ getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
+ getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
+ getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
@@ -17564,7 +16653,7 @@ interface WebGLRenderingContextBase {
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
- getExtension(extensionName: string): any;
+ getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
@@ -18021,16 +17110,6 @@ declare var WebGLVertexArrayObject: {
interface WebGLVertexArrayObjectOES {
}
-interface WebKitPoint {
- x: number;
- y: number;
-}
-
-declare var WebKitPoint: {
- prototype: WebKitPoint;
- new(x?: number, y?: number): WebKitPoint;
-};
-
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
@@ -18092,7 +17171,7 @@ interface WebSocket extends EventTarget {
declare var WebSocket: {
prototype: WebSocket;
- new(url: string, protocols?: string | string[]): WebSocket;
+ new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
@@ -18119,139 +17198,67 @@ declare var WheelEvent: {
};
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
- "abort": UIEvent;
- "afterprint": Event;
- "beforeprint": Event;
- "beforeunload": BeforeUnloadEvent;
- "blur": FocusEvent;
- "canplay": Event;
- "canplaythrough": Event;
- "change": Event;
- "click": MouseEvent;
- "compassneedscalibration": Event;
- "contextmenu": MouseEvent;
- "dblclick": MouseEvent;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
- "deviceorientationabsolute": DeviceOrientationEvent;
- "drag": DragEvent;
- "dragend": DragEvent;
- "dragenter": DragEvent;
- "dragleave": DragEvent;
- "dragover": DragEvent;
- "dragstart": DragEvent;
- "drop": DragEvent;
- "durationchange": Event;
- "emptied": Event;
- "ended": Event;
- "error": ErrorEvent;
- "focus": FocusEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
- "hashchange": HashChangeEvent;
- "input": Event;
- "invalid": Event;
- "keydown": KeyboardEvent;
- "keypress": KeyboardEvent;
- "keyup": KeyboardEvent;
- "load": Event;
- "loadeddata": Event;
- "loadedmetadata": Event;
- "loadstart": Event;
- "message": MessageEvent;
- "mousedown": MouseEvent;
- "mouseenter": MouseEvent;
- "mouseleave": MouseEvent;
- "mousemove": MouseEvent;
- "mouseout": MouseEvent;
- "mouseover": MouseEvent;
- "mouseup": MouseEvent;
- "mousewheel": Event;
- "offline": Event;
- "online": Event;
"orientationchange": Event;
- "pagehide": PageTransitionEvent;
- "pageshow": PageTransitionEvent;
- "pause": Event;
- "play": Event;
- "playing": Event;
- "popstate": PopStateEvent;
- "progress": ProgressEvent<Window>;
- "ratechange": Event;
- "readystatechange": ProgressEvent<Window>;
- "reset": Event;
- "resize": UIEvent;
- "scroll": Event;
- "seeked": Event;
- "seeking": Event;
- "select": Event;
- "stalled": Event;
- "storage": StorageEvent;
- "submit": Event;
- "suspend": Event;
- "timeupdate": Event;
- "unload": Event;
- "volumechange": Event;
- "vrdisplayactivate": Event;
- "vrdisplayblur": Event;
- "vrdisplayconnect": Event;
- "vrdisplaydeactivate": Event;
- "vrdisplaydisconnect": Event;
- "vrdisplaypresentchange": Event;
- "waiting": Event;
}
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
- readonly applicationCache: ApplicationCache;
+ /** @deprecated This is a legacy alias of `navigator`. */
readonly clientInformation: Navigator;
+ /**
+ * Returns true if the window has been closed, false otherwise.
+ */
readonly closed: boolean;
- customElements: CustomElementRegistry;
- defaultStatus: string;
+ /**
+ * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
+ */
+ readonly customElements: CustomElementRegistry;
readonly devicePixelRatio: number;
- readonly doNotTrack: string;
readonly document: Document;
/** @deprecated */
readonly event: Event | undefined;
/** @deprecated */
readonly external: External;
readonly frameElement: Element | null;
- readonly frames: Window;
+ readonly frames: WindowProxy;
readonly history: History;
readonly innerHeight: number;
readonly innerWidth: number;
readonly length: number;
- location: Location;
+ get location(): Location;
+ set location(href: string | Location);
+ /**
+ * Returns true if the location bar is visible; otherwise, returns false.
+ */
readonly locationbar: BarProp;
+ /**
+ * Returns true if the menu bar is visible; otherwise, returns false.
+ */
readonly menubar: BarProp;
- readonly msContentScript: ExtensionScriptApis;
name: string;
readonly navigator: Navigator;
- offscreenBuffering: string | boolean;
- oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
- ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
- ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
- ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
- onmousewheel: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
- onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
- onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;
- onvrdisplayblur: ((this: Window, ev: Event) => any) | null;
- onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
- onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
- onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
- onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
- opener: WindowProxy | null;
+ opener: any;
/** @deprecated */
- readonly orientation: string | number;
+ readonly orientation: number;
readonly outerHeight: number;
readonly outerWidth: number;
+ /** @deprecated This is a legacy alias of `scrollX`. */
readonly pageXOffset: number;
+ /** @deprecated This is a legacy alias of `scrollY`. */
readonly pageYOffset: number;
- readonly parent: Window;
+ /** Refers to either the parent WindowProxy, or itself. It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */
+ readonly parent: WindowProxy;
+ /**
+ * Returns true if the personal bar is visible; otherwise, returns false.
+ */
readonly personalbar: BarProp;
readonly screen: Screen;
readonly screenLeft: number;
@@ -18260,37 +17267,63 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
readonly screenY: number;
readonly scrollX: number;
readonly scrollY: number;
+ /**
+ * Returns true if the scrollbars are visible; otherwise, returns false.
+ */
readonly scrollbars: BarProp;
readonly self: Window & typeof globalThis;
readonly speechSynthesis: SpeechSynthesis;
+ /** @deprecated */
status: string;
+ /**
+ * Returns true if the status bar is visible; otherwise, returns false.
+ */
readonly statusbar: BarProp;
- readonly styleMedia: StyleMedia;
+ /**
+ * Returns true if the toolbar is visible; otherwise, returns false.
+ */
readonly toolbar: BarProp;
- readonly top: Window;
+ readonly top: WindowProxy | null;
readonly visualViewport: VisualViewport;
readonly window: Window & typeof globalThis;
alert(message?: any): void;
blur(): void;
+ cancelIdleCallback(handle: number): void;
/** @deprecated */
captureEvents(): void;
+ /**
+ * Closes the window.
+ */
close(): void;
confirm(message?: string): boolean;
- departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
+ /**
+ * Moves the focus to the window's browsing context, if any.
+ */
focus(): void;
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
- getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;
getSelection(): Selection | null;
matchMedia(query: string): MediaQueryList;
moveBy(x: number, y: number): void;
moveTo(x: number, y: number): void;
- msWriteProfilerMark(profilerMarkName: string): void;
- open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
+ open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
+ /**
+ * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
+ *
+ * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
+ *
+ * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
+ *
+ * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
+ *
+ * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
+ */
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
+ postMessage(message: any, options?: WindowPostMessageOptions): void;
print(): void;
prompt(message?: string, _default?: string): string | null;
/** @deprecated */
releaseEvents(): void;
+ requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
resizeBy(x: number, y: number): void;
resizeTo(width: number, height: number): void;
scroll(options?: ScrollToOptions): void;
@@ -18299,11 +17332,10 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
scrollBy(x: number, y: number): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
+ /**
+ * Cancels the document load.
+ */
stop(): void;
- webkitCancelAnimationFrame(handle: number): void;
- webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
- webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
- webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -18320,7 +17352,9 @@ interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
- "hashchange": HashChangeEvent;
+ "gamepadconnected": Event;
+ "gamepaddisconnected": Event;
+ "hashchange": Event;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
@@ -18339,7 +17373,9 @@ interface WindowEventHandlers {
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
- onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
+ ongamepadconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;
+ ongamepaddisconnected: ((this: WindowEventHandlers, ev: Event) => any) | null;
+ onhashchange: ((this: WindowEventHandlers, ev: Event) => any) | null;
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
@@ -18364,6 +17400,7 @@ interface WindowLocalStorage {
interface WindowOrWorkerGlobalScope {
readonly caches: CacheStorage;
+ readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
@@ -18411,11 +17448,18 @@ interface Worker extends EventTarget, AbstractWorker {
declare var Worker: {
prototype: Worker;
- new(stringUrl: string | URL, options?: WorkerOptions): Worker;
+ new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface Worklet {
- addModule(moduleURL: string, options?: WorkletOptions): Promise<void>;
+ /**
+ * 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.
+ *
+ * The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
+ *
+ * Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
+ */
+ addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
@@ -18427,6 +17471,7 @@ declare var Worklet: {
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
+ close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
@@ -18453,7 +17498,7 @@ interface WritableStreamDefaultWriter<W = any> {
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
- write(chunk: W): Promise<void>;
+ write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
@@ -18486,11 +17531,11 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
*/
readonly readyState: number;
/**
- * Returns the response's body.
+ * Returns the response body.
*/
readonly response: any;
/**
- * Returns the text response.
+ * Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
@@ -18509,7 +17554,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
/**
- * Returns the document response.
+ * Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*/
@@ -18517,7 +17562,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
readonly status: number;
readonly statusText: string;
/**
- * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
+ * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
@@ -18541,16 +17586,16 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
/**
* Sets the request method, request URL, and synchronous flag.
*
- * Throws a "SyntaxError" DOMException if either method is not a valid HTTP method or url cannot be parsed.
+ * Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
- open(method: string, url: string): void;
- open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void;
+ open(method: string, url: string | URL): void;
+ open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
- * Acts as if the `Content-Type` header value for response is mime. (It does not actually change the header though.)
+ * Acts as if the `Content-Type` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
@@ -18560,7 +17605,7 @@ interface XMLHttpRequest extends XMLHttpRequestEventTarget {
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
- send(body?: Document | BodyInit | null): void;
+ send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
@@ -18707,13 +17752,13 @@ declare var XPathResult: {
/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
interface XSLTProcessor {
clearParameters(): void;
- getParameter(namespaceURI: string, localName: string): any;
+ getParameter(namespaceURI: string | null, localName: string): any;
importStylesheet(style: Node): void;
- removeParameter(namespaceURI: string, localName: string): void;
+ removeParameter(namespaceURI: string | null, localName: string): void;
reset(): void;
- setParameter(namespaceURI: string, localName: string, value: any): void;
+ setParameter(namespaceURI: string | null, localName: string, value: any): void;
transformToDocument(source: Node): Document;
- transformToFragment(source: Node, document: Document): DocumentFragment;
+ transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
@@ -18721,22 +17766,7 @@ declare var XSLTProcessor: {
new(): XSLTProcessor;
};
-interface webkitRTCPeerConnection extends RTCPeerConnection {
- addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var webkitRTCPeerConnection: {
- prototype: webkitRTCPeerConnection;
- new(configuration: RTCConfiguration): webkitRTCPeerConnection;
-};
-
-declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
-
interface Console {
- memory: any;
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
@@ -18745,7 +17775,6 @@ interface Console {
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
- exception(message?: string, ...optionalParams: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
@@ -18770,7 +17799,7 @@ declare namespace CSS {
}
declare namespace WebAssembly {
- interface CompileError {
+ interface CompileError extends Error {
}
var CompileError: {
@@ -18797,7 +17826,7 @@ declare namespace WebAssembly {
new(module: Module, importObject?: Imports): Instance;
};
- interface LinkError {
+ interface LinkError extends Error {
}
var LinkError: {
@@ -18826,7 +17855,7 @@ declare namespace WebAssembly {
imports(moduleObject: Module): ModuleImportDescriptor[];
};
- interface RuntimeError {
+ interface RuntimeError extends Error {
}
var RuntimeError: {
@@ -18836,14 +17865,14 @@ declare namespace WebAssembly {
interface Table {
readonly length: number;
- get(index: number): Function | null;
- grow(delta: number): number;
- set(index: number, value: Function | null): void;
+ get(index: number): any;
+ grow(delta: number, value?: any): number;
+ set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
- new(descriptor: TableDescriptor): Table;
+ new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
@@ -18880,18 +17909,18 @@ declare namespace WebAssembly {
}
type ImportExportKind = "function" | "global" | "memory" | "table";
- type TableKind = "anyfunc";
- type ValueType = "f32" | "f64" | "i32" | "i64";
+ type TableKind = "anyfunc" | "externref";
+ type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
- type ModuleImports = Record<string, ImportValue>;
type Imports = Record<string, ModuleImports>;
+ type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
- function compileStreaming(source: Response | Promise<Response>): Promise<Module>;
+ function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
- function instantiateStreaming(response: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
+ function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
@@ -18911,42 +17940,46 @@ interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
-interface EventHandlerNonNull {
- (event: Event): any;
+interface ErrorCallback {
+ (err: DOMException): void;
}
-interface ForEachCallback {
- (keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, status: MediaKeyStatus): void;
+interface FileCallback {
+ (file: File): void;
+}
+
+interface FileSystemEntriesCallback {
+ (entries: FileSystemEntry[]): void;
+}
+
+interface FileSystemEntryCallback {
+ (entry: FileSystemEntry): void;
}
interface FrameRequestCallback {
- (time: number): void;
+ (time: DOMHighResTimeStamp): void;
}
interface FunctionStringCallback {
(data: string): void;
}
+interface IdleRequestCallback {
+ (deadline: IdleDeadline): void;
+}
+
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
-interface MSLaunchUriCallback {
- (): void;
+interface MediaSessionActionHandler {
+ (details: MediaSessionActionDetails): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
-interface NavigatorUserMediaErrorCallback {
- (error: MediaStreamError): void;
-}
-
-interface NavigatorUserMediaSuccessCallback {
- (stream: MediaStream): void;
-}
-
interface NotificationPermissionCallback {
(permission: NotificationPermission): void;
}
@@ -18972,7 +18005,7 @@ interface PositionErrorCallback {
}
interface QueuingStrategySize<T = any> {
- (chunk: T): number;
+ (chunk?: T): number;
}
interface RTCPeerConnectionErrorCallback {
@@ -18983,8 +18016,8 @@ interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
-interface RTCStatsCallback {
- (report: RTCStatsReport): void;
+interface RemotePlaybackAvailabilityCallback {
+ (available: boolean): void;
}
interface ResizeObserverCallback {
@@ -18996,7 +18029,7 @@ interface TransformerFlushCallback<O> {
}
interface TransformerStartCallback<O> {
- (controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
+ (controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
@@ -19004,7 +18037,7 @@ interface TransformerTransformCallback<I, O> {
}
interface UnderlyingSinkAbortCallback {
- (reason: any): void | PromiseLike<void>;
+ (reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
@@ -19012,7 +18045,7 @@ interface UnderlyingSinkCloseCallback {
}
interface UnderlyingSinkStartCallback {
- (controller: WritableStreamDefaultController): void | PromiseLike<void>;
+ (controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
@@ -19020,7 +18053,7 @@ interface UnderlyingSinkWriteCallback<W> {
}
interface UnderlyingSourceCancelCallback {
- (reason: any): void | PromiseLike<void>;
+ (reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
@@ -19028,7 +18061,7 @@ interface UnderlyingSourcePullCallback<R> {
}
interface UnderlyingSourceStartCallback<R> {
- (controller: ReadableStreamController<R>): void | PromiseLike<void>;
+ (controller: ReadableStreamController<R>): any;
}
interface VoidFunction {
@@ -19039,7 +18072,6 @@ interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
- "applet": HTMLAppletElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
@@ -19139,11 +18171,11 @@ interface HTMLElementTagNameMap {
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
- "td": HTMLTableDataCellElement;
+ "td": HTMLTableCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
- "th": HTMLTableHeaderCellElement;
+ "th": HTMLTableCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
@@ -19163,6 +18195,9 @@ interface HTMLElementDeprecatedTagNameMap {
interface SVGElementTagNameMap {
"a": SVGAElement;
+ "animate": SVGAnimateElement;
+ "animateMotion": SVGAnimateMotionElement;
+ "animateTransform": SVGAnimateTransformElement;
"circle": SVGCircleElement;
"clipPath": SVGClipPathElement;
"defs": SVGDefsElement;
@@ -19176,6 +18211,7 @@ interface SVGElementTagNameMap {
"feDiffuseLighting": SVGFEDiffuseLightingElement;
"feDisplacementMap": SVGFEDisplacementMapElement;
"feDistantLight": SVGFEDistantLightElement;
+ "feDropShadow": SVGFEDropShadowElement;
"feFlood": SVGFEFloodElement;
"feFuncA": SVGFEFuncAElement;
"feFuncB": SVGFEFuncBElement;
@@ -19201,6 +18237,7 @@ interface SVGElementTagNameMap {
"marker": SVGMarkerElement;
"mask": SVGMaskElement;
"metadata": SVGMetadataElement;
+ "mpath": SVGMPathElement;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
@@ -19208,6 +18245,7 @@ interface SVGElementTagNameMap {
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
+ "set": SVGSetElement;
"stop": SVGStopElement;
"style": SVGStyleElement;
"svg": SVGSVGElement;
@@ -19233,56 +18271,58 @@ declare var Image: {
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
-declare var applicationCache: ApplicationCache;
+/** @deprecated This is a legacy alias of `navigator`. */
declare var clientInformation: Navigator;
+/**
+ * Returns true if the window has been closed, false otherwise.
+ */
declare var closed: boolean;
+/**
+ * Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
+ */
declare var customElements: CustomElementRegistry;
-declare var defaultStatus: string;
declare var devicePixelRatio: number;
-declare var doNotTrack: string;
declare var document: Document;
/** @deprecated */
declare var event: Event | undefined;
/** @deprecated */
declare var external: External;
declare var frameElement: Element | null;
-declare var frames: Window;
+declare var frames: WindowProxy;
declare var history: History;
declare var innerHeight: number;
declare var innerWidth: number;
declare var length: number;
declare var location: Location;
+/**
+ * Returns true if the location bar is visible; otherwise, returns false.
+ */
declare var locationbar: BarProp;
+/**
+ * Returns true if the menu bar is visible; otherwise, returns false.
+ */
declare var menubar: BarProp;
-declare var msContentScript: ExtensionScriptApis;
/** @deprecated */
declare const name: void;
declare var navigator: Navigator;
-declare var offscreenBuffering: string | boolean;
-declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
-declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
-declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
-declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
-declare var onmousewheel: ((this: Window, ev: Event) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
-declare var onreadystatechange: ((this: Window, ev: ProgressEvent<Window>) => any) | null;
-declare var onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;
-declare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;
-declare var opener: WindowProxy | null;
+declare var opener: any;
/** @deprecated */
-declare var orientation: string | number;
+declare var orientation: number;
declare var outerHeight: number;
declare var outerWidth: number;
+/** @deprecated This is a legacy alias of `scrollX`. */
declare var pageXOffset: number;
+/** @deprecated This is a legacy alias of `scrollY`. */
declare var pageYOffset: number;
-declare var parent: Window;
+/** Refers to either the parent WindowProxy, or itself. It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent. */
+declare var parent: WindowProxy;
+/**
+ * Returns true if the personal bar is visible; otherwise, returns false.
+ */
declare var personalbar: BarProp;
declare var screen: Screen;
declare var screenLeft: number;
@@ -19291,37 +18331,63 @@ declare var screenX: number;
declare var screenY: number;
declare var scrollX: number;
declare var scrollY: number;
+/**
+ * Returns true if the scrollbars are visible; otherwise, returns false.
+ */
declare var scrollbars: BarProp;
declare var self: Window & typeof globalThis;
declare var speechSynthesis: SpeechSynthesis;
+/** @deprecated */
declare var status: string;
+/**
+ * Returns true if the status bar is visible; otherwise, returns false.
+ */
declare var statusbar: BarProp;
-declare var styleMedia: StyleMedia;
+/**
+ * Returns true if the toolbar is visible; otherwise, returns false.
+ */
declare var toolbar: BarProp;
-declare var top: Window;
+declare var top: WindowProxy | null;
declare var visualViewport: VisualViewport;
declare var window: Window & typeof globalThis;
declare function alert(message?: any): void;
declare function blur(): void;
+declare function cancelIdleCallback(handle: number): void;
/** @deprecated */
declare function captureEvents(): void;
+/**
+ * Closes the window.
+ */
declare function close(): void;
declare function confirm(message?: string): boolean;
-declare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;
+/**
+ * Moves the focus to the window's browsing context, if any.
+ */
declare function focus(): void;
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
-declare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;
declare function getSelection(): Selection | null;
declare function matchMedia(query: string): MediaQueryList;
declare function moveBy(x: number, y: number): void;
declare function moveTo(x: number, y: number): void;
-declare function msWriteProfilerMark(profilerMarkName: string): void;
-declare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;
+declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
+/**
+ * Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
+ *
+ * Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
+ *
+ * A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
+ *
+ * If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
+ *
+ * Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
+ */
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
+declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
declare function print(): void;
declare function prompt(message?: string, _default?: string): string | null;
/** @deprecated */
declare function releaseEvents(): void;
+declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
declare function resizeBy(x: number, y: number): void;
declare function resizeTo(width: number, height: number): void;
declare function scroll(options?: ScrollToOptions): void;
@@ -19330,18 +18396,17 @@ declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
+/**
+ * Cancels the document load.
+ */
declare function stop(): void;
-declare function webkitCancelAnimationFrame(handle: number): void;
-declare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;
-declare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;
-declare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;
declare function toString(): string;
/**
* 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.
*/
declare function dispatchEvent(event: Event): boolean;
-declare var sessionStorage: Storage;
-declare var localStorage: Storage;
+declare function cancelAnimationFrame(handle: number): void;
+declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
@@ -19357,7 +18422,6 @@ declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
* @param ev The focus event.
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
-declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
@@ -19401,7 +18465,6 @@ declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
* @param ev The drag event.
*/
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
-declare var ondragexit: ((this: Window, ev: Event) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
@@ -19443,6 +18506,7 @@ declare var onerror: OnErrorEventHandler;
* @param ev The event.
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
+declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
declare var oninput: ((this: Window, ev: Event) => any) | null;
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
@@ -19454,6 +18518,7 @@ declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
+ * @deprecated
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
@@ -19553,7 +18618,6 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
* @param ev The event.
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
-declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
@@ -19606,10 +18670,32 @@ declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
* @param ev The event.
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
+declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
+declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
+declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
+declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
-declare function cancelAnimationFrame(handle: number): void;
-declare function requestAnimationFrame(callback: FrameRequestCallback): number;
+declare var onafterprint: ((this: Window, ev: Event) => any) | null;
+declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
+declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
+declare var ongamepadconnected: ((this: Window, ev: Event) => any) | null;
+declare var ongamepaddisconnected: ((this: Window, ev: Event) => any) | null;
+declare var onhashchange: ((this: Window, ev: Event) => any) | null;
+declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
+declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
+declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
+declare var onoffline: ((this: Window, ev: Event) => any) | null;
+declare var ononline: ((this: Window, ev: Event) => any) | null;
+declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
+declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
+declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
+declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
+declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
+declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
+declare var onunload: ((this: Window, ev: Event) => any) | null;
+declare var localStorage: Storage;
declare var caches: CacheStorage;
+declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
@@ -19625,90 +18711,77 @@ declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response
declare function queueMicrotask(callback: VoidFunction): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
-declare var onafterprint: ((this: Window, ev: Event) => any) | null;
-declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
-declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
-declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
-declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
-declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
-declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
-declare var onoffline: ((this: Window, ev: Event) => any) | null;
-declare var ononline: ((this: Window, ev: Event) => any) | null;
-declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
-declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
-declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
-declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
-declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
-declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
-declare var onunload: ((this: Window, ev: Event) => any) | null;
+declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-type HeadersInit = Headers | string[][] | Record<string, string>;
-type BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream<Uint8Array> | string;
-type RequestInfo = Request | string;
+type AlgorithmIdentifier = Algorithm | string;
+type BigInteger = Uint8Array;
+type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
-type DOMHighResTimeStamp = number;
-type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
-type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
-type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
-type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
-type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
-type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
-type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
-type MediaProvider = MediaStream | MediaSource | Blob;
-type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
-type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
-type TimerHandler = string | Function;
-type ConstrainULong = number | ConstrainULongRange;
-type ConstrainDouble = number | ConstrainDoubleRange;
+type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
+type BufferSource = ArrayBufferView | ArrayBuffer;
+type COSEAlgorithmIdentifier = number;
+type CSSNumberish = number;
+type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
+type ClipboardItemData = Promise<ClipboardItemDataType>;
+type ClipboardItemDataType = string | Blob;
+type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
-type PerformanceEntryList = PerformanceEntry[];
-type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
-type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
-type VibratePattern = number | number[];
-type COSEAlgorithmIdentifier = number;
-type UvmEntry = number[];
-type UvmEntries = UvmEntry[];
-type AlgorithmIdentifier = string | Algorithm;
-type HashAlgorithmIdentifier = AlgorithmIdentifier;
-type BigInteger = Uint8Array;
-type NamedCurve = string;
-type GLenum = number;
-type GLboolean = boolean;
+type ConstrainDouble = number | ConstrainDoubleRange;
+type ConstrainULong = number | ConstrainULongRange;
+type DOMHighResTimeStamp = number;
+type DOMTimeStamp = number;
+type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
+type Float32List = Float32Array | GLfloat[];
+type FormDataEntryValue = File | string;
type GLbitfield = number;
+type GLboolean = boolean;
+type GLclampf = number;
+type GLenum = number;
+type GLfloat = number;
type GLint = number;
-type GLsizei = number;
+type GLint64 = number;
type GLintptr = number;
+type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
-type GLfloat = number;
-type GLclampf = number;
-type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
-type Float32List = Float32Array | GLfloat[];
-type Int32List = Int32Array | GLint[];
-type GLint64 = number;
type GLuint64 = number;
-type Uint32List = Uint32Array | GLuint[];
-type BufferSource = ArrayBufferView | ArrayBuffer;
-type DOMTimeStamp = number;
-type LineAndPositionSetting = number | AutoKeyword;
-type FormDataEntryValue = File | string;
+type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
+type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
+type HashAlgorithmIdentifier = AlgorithmIdentifier;
+type HeadersInit = string[][] | Record<string, string> | Headers;
+type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
+type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
-type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;
+type Int32List = Int32Array | GLint[];
+type LineAndPositionSetting = number | AutoKeyword;
+type MediaProvider = MediaStream | MediaSource | Blob;
+type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
-type IDBKeyPath = string;
-type Transferable = ArrayBuffer | MessagePort | ImageBitmap | OffscreenCanvas;
-type RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;
-type RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;
-/** @deprecated */
-type MouseWheelEvent = WheelEvent;
-type WindowProxy = Window;
+type NamedCurve = string;
+type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
+type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
+type PerformanceEntryList = PerformanceEntry[];
+type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
+type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
+type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
+type RequestInfo = Request | string;
+type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
+type TimerHandler = string | Function;
+type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
+type Uint32List = Uint32Array | GLuint[];
+type UvmEntries = UvmEntry[];
+type UvmEntry = number[];
+type VibratePattern = number | number[];
+type WindowProxy = Window;
+type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
+type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
@@ -19722,16 +18795,22 @@ type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "low
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
+type CanvasFontKerning = "auto" | "none" | "normal";
+type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
+type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
+type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
+type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
+type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
type CredentialMediationRequirement = "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
@@ -19741,10 +18820,12 @@ type DocumentReadyState = "complete" | "interactive" | "loading";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
+type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
+type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
-type GamepadHand = "" | "left" | "right";
type GamepadHapticActuatorType = "vibration";
-type GamepadMappingType = "" | "standard";
+type GamepadMappingType = "" | "standard" | "xr-standard";
+type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
@@ -19755,68 +18836,65 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LineAlignSetting = "center" | "end" | "start";
-type ListeningState = "active" | "disambiguation" | "inactive";
-type MSCredentialType = "FIDO_2_0";
-type MSTransportType = "BT" | "Embedded" | "NFC" | "USB";
-type MSWebViewPermissionState = "allow" | "defer" | "deny" | "unknown";
-type MSWebViewPermissionType = "geolocation" | "media" | "pointerlock" | "unlimitedIndexedDBQuota" | "webnotifications";
+type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
+type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
+type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
-type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable";
+type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
+type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
+type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
-type NavigationReason = "down" | "left" | "right" | "up";
type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
-type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2";
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
-type PaymentShippingType = "delivery" | "pickup" | "shipping";
-type PermissionName = "accelerometer" | "ambient-light-sensor" | "background-fetch" | "background-sync" | "bluetooth" | "camera" | "clipboard-read" | "clipboard-write" | "device-info" | "display-capture" | "geolocation" | "gyroscope" | "magnetometer" | "microphone" | "midi" | "nfc" | "notifications" | "persistent-storage" | "push" | "speaker";
+type PermissionName = "gamepad" | "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
+type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
+type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type PushPermissionState = "denied" | "granted" | "prompt";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
-type RTCDtlsRole = "auto" | "client" | "server";
+type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
-type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceCredentialType = "password";
-type RTCIceGatherPolicy = "all" | "nohost" | "relay";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
-type RTCIceRole = "controlled" | "controlling" | "unknown";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
+type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
-type RTCSctpTransportState = "closed" | "connected" | "connecting";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
-type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "succeeded" | "waiting";
-type RTCStatsIceCandidateType = "host" | "peerreflexive" | "relayed" | "serverreflexive";
-type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "ice-server" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "receiver" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "sctp-transport" | "sender" | "stream" | "track" | "transceiver" | "transport";
+type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
+type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
type ReadyState = "closed" | "ended" | "open";
+type RecordingState = "inactive" | "paused" | "recording";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
+type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
-type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
+type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
@@ -19827,17 +18905,18 @@ type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
+type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
-type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "bad-grammar" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "service-not-allowed";
+type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
+type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
-type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";