diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts
index def48d12b..5a63c9cbe 100644
--- a/baselines/dom.generated.d.ts
+++ b/baselines/dom.generated.d.ts
@@ -2,19 +2,24 @@
/// DOM APIs
/////////////////////////////
-interface Account {
- displayName: string;
- id: string;
- imageURL?: string;
- name?: string;
- rpDisplayName: string;
-}
-
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;
+}
+
interface AesCbcParams extends Algorithm {
iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;
}
@@ -64,13 +69,6 @@ interface AnimationPlaybackEventInit extends EventInit {
timelineTime?: number | null;
}
-interface AssertionOptions {
- allowList?: ScopedCredentialDescriptor[];
- extensions?: WebAuthnExtensions;
- rpId?: string;
- timeoutSeconds?: number;
-}
-
interface AssignedNodesOptions {
flatten?: boolean;
}
@@ -189,15 +187,6 @@ interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
-interface ClientData {
- challenge: string;
- extensions?: WebAuthnExtensions;
- hashAlg: string | Algorithm;
- origin: string;
- rpId: string;
- tokenBinding?: string;
-}
-
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
@@ -345,10 +334,6 @@ interface DelayOptions extends AudioNodeOptions {
maxDelayTime?: number;
}
-interface DeviceLightEventInit extends EventInit {
- value?: number;
-}
-
interface DeviceMotionEventAccelerationInit {
x?: number | null;
y?: number | null;
@@ -946,9 +931,14 @@ interface PannerOptions extends AudioNodeOptions {
rolloffFactor?: number;
}
+interface PayerErrors {
+ email?: string;
+ name?: string;
+ phone?: string;
+}
+
interface PaymentCurrencyAmount {
currency: string;
- currencySystem?: string;
value: string;
}
@@ -972,6 +962,9 @@ interface PaymentDetailsModifier {
interface PaymentDetailsUpdate extends PaymentDetailsBase {
error?: string;
+ payerErrors?: PayerErrors;
+ paymentMethodErrors?: any;
+ shippingAddressErrors?: AddressErrors;
total?: PaymentItem;
}
@@ -981,17 +974,23 @@ interface PaymentItem {
pending?: boolean;
}
+interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
+ methodDetails?: any;
+ methodName?: string;
+}
+
interface PaymentMethodData {
data?: any;
supportedMethods: string | string[];
}
interface PaymentOptions {
+ requestBillingAddress?: boolean;
requestPayerEmail?: boolean;
requestPayerName?: boolean;
requestPayerPhone?: boolean;
requestShipping?: boolean;
- shippingType?: string;
+ shippingType?: PaymentShippingType;
}
interface PaymentRequestUpdateEventInit extends EventInit {
@@ -1004,6 +1003,13 @@ interface PaymentShippingOption {
selected?: boolean;
}
+interface PaymentValidationErrors {
+ error?: string;
+ payer?: PayerErrors;
+ paymentMethod?: any;
+ shippingAddress?: AddressErrors;
+}
+
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
@@ -1164,12 +1170,11 @@ interface RTCConfiguration {
iceCandidatePoolSize?: number;
iceServers?: RTCIceServer[];
iceTransportPolicy?: RTCIceTransportPolicy;
- peerIdentity?: string;
rtcpMuxPolicy?: RTCRtcpMuxPolicy;
}
interface RTCDTMFToneChangeEventInit extends EventInit {
- tone: string;
+ tone?: string;
}
interface RTCDataChannelEventInit extends EventInit {
@@ -1182,7 +1187,6 @@ interface RTCDataChannelInit {
maxRetransmits?: number;
negotiated?: boolean;
ordered?: boolean;
- priority?: RTCPriorityType;
protocol?: string;
}
@@ -1202,7 +1206,6 @@ interface RTCErrorEventInit extends EventInit {
interface RTCErrorInit {
errorDetail: RTCErrorDetailType;
- httpRequestStatusCode?: number;
receivedAlert?: number;
sctpCauseCode?: number;
sdpLineNumber?: number;
@@ -1292,7 +1295,7 @@ interface RTCIceParameters {
}
interface RTCIceServer {
- credential?: string | RTCOAuthCredential;
+ credential?: string;
credentialType?: RTCIceCredentialType;
urls: string | string[];
username?: string;
@@ -1312,6 +1315,11 @@ interface RTCInboundRTPStreamStats extends RTCRTPStreamStats {
packetsReceived?: number;
}
+interface RTCLocalSessionDescriptionInit {
+ sdp?: string;
+ type?: RTCSdpType;
+}
+
interface RTCMediaStreamTrackStats extends RTCStats {
audioLevel?: number;
echoReturnLoss?: number;
@@ -1329,13 +1337,7 @@ interface RTCMediaStreamTrackStats extends RTCStats {
trackIdentifier?: string;
}
-interface RTCOAuthCredential {
- accessToken: string;
- macKey: string;
-}
-
interface RTCOfferAnswerOptions {
- voiceActivityDetection?: boolean;
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
@@ -1352,8 +1354,9 @@ interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
+ address?: string | null;
errorCode: number;
- hostCandidate?: string;
+ port?: number | null;
statusText?: string;
url?: string;
}
@@ -1418,16 +1421,9 @@ interface RTCRtpContributingSource {
timestamp: number;
}
-interface RTCRtpDecodingParameters extends RTCRtpCodingParameters {
-}
-
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
- codecPayloadType?: number;
- dtx?: RTCDtxStatus;
maxBitrate?: number;
- maxFramerate?: number;
- ptime?: number;
scaleResolutionDownBy?: number;
}
@@ -1460,7 +1456,6 @@ interface RTCRtpParameters {
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
- encodings: RTCRtpDecodingParameters[];
}
interface RTCRtpRtxParameters {
@@ -1468,9 +1463,7 @@ interface RTCRtpRtxParameters {
}
interface RTCRtpSendParameters extends RTCRtpParameters {
- degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
- priority?: RTCPriorityType;
transactionId: string;
}
@@ -1492,7 +1485,7 @@ interface RTCRtpUnhandled {
interface RTCSessionDescriptionInit {
sdp?: string;
- type?: RTCSdpType;
+ type: RTCSdpType;
}
interface RTCSrtpKeyParam {
@@ -1521,10 +1514,6 @@ interface RTCStats {
type?: RTCStatsType;
}
-interface RTCStatsEventInit extends EventInit {
- report: RTCStatsReport;
-}
-
interface RTCStatsReport {
}
@@ -1687,24 +1676,6 @@ interface SVGBoundingBoxOptions {
stroke?: boolean;
}
-interface ScopedCredentialDescriptor {
- id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;
- transports?: Transport[];
- type: ScopedCredentialType;
-}
-
-interface ScopedCredentialOptions {
- excludeList?: ScopedCredentialDescriptor[];
- extensions?: WebAuthnExtensions;
- rpId?: string;
- timeoutSeconds?: number;
-}
-
-interface ScopedCredentialParameters {
- algorithm: string | Algorithm;
- type: ScopedCredentialType;
-}
-
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
@@ -1732,14 +1703,6 @@ interface SecurityPolicyViolationEventInit extends EventInit {
violatedDirective?: string;
}
-interface ServiceWorkerMessageEventInit extends EventInit {
- data?: any;
- lastEventId?: string;
- origin?: string;
- ports?: MessagePort[] | null;
- source?: ServiceWorker | MessagePort | null;
-}
-
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
@@ -1934,9 +1897,6 @@ interface WaveShaperOptions extends AudioNodeOptions {
oversample?: OverSampleType;
}
-interface WebAuthnExtensions {
-}
-
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
@@ -3871,10 +3831,6 @@ declare var DOMImplementation: {
new(): DOMImplementation;
};
-interface DOML2DeprecatedColorProperty {
- color: string;
-}
-
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
@@ -4360,16 +4316,6 @@ declare var DeviceAcceleration: {
new(): DeviceAcceleration;
};
-/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability. */
-interface DeviceLightEvent extends Event {
- readonly value: number;
-}
-
-declare var DeviceLightEvent: {
- prototype: DeviceLightEvent;
- new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
-};
-
/** 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;
@@ -4704,7 +4650,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
- createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -4719,10 +4664,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
- createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
- createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
- createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
- createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -4737,6 +4678,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
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;
@@ -4753,12 +4695,10 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
- createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
@@ -4954,7 +4894,6 @@ interface DocumentEvent {
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
- createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -4969,10 +4908,6 @@ interface DocumentEvent {
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;
- createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;
- createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;
- createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;
- createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
@@ -4987,6 +4922,7 @@ interface DocumentEvent {
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;
@@ -5003,12 +4939,10 @@ interface DocumentEvent {
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;
- createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
- createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
@@ -6340,29 +6274,6 @@ declare var HTMLBaseElement: {
new(): HTMLBaseElement;
};
-/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating elements. */
-interface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {
- /**
- * Sets or retrieves the current typeface family.
- */
- /** @deprecated */
- face: string;
- /**
- * Sets or retrieves the font size of the object.
- */
- /** @deprecated */
- size: number;
- addEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
- removeEventListener(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
-}
-
-declare var HTMLBaseFontElement: {
- prototype: HTMLBaseFontElement;
- new(): HTMLBaseFontElement;
-};
-
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
"orientationchange": Event;
}
@@ -9919,43 +9830,6 @@ declare var MSGesture: {
new(): MSGesture;
};
-/** The MSGestureEvent is a proprietary interface specific to Internet Explorer and Microsoft Edge which represents events that occur due to touch gestures. Events using this interface include MSGestureStart, MSGestureEnd, MSGestureTap, MSGestureHold, MSGestureChange, and MSInertiaStart. */
-interface MSGestureEvent extends UIEvent {
- readonly clientX: number;
- readonly clientY: number;
- readonly expansion: number;
- readonly gestureObject: any;
- readonly hwTimestamp: number;
- readonly offsetX: number;
- readonly offsetY: number;
- readonly rotation: number;
- readonly scale: number;
- readonly screenX: number;
- readonly screenY: number;
- readonly translationX: number;
- readonly translationY: number;
- readonly velocityAngular: number;
- readonly velocityExpansion: number;
- readonly velocityX: number;
- readonly velocityY: number;
- initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;
- readonly MSGESTURE_FLAG_BEGIN: number;
- readonly MSGESTURE_FLAG_CANCEL: number;
- readonly MSGESTURE_FLAG_END: number;
- readonly MSGESTURE_FLAG_INERTIA: number;
- readonly MSGESTURE_FLAG_NONE: number;
-}
-
-declare var MSGestureEvent: {
- prototype: MSGestureEvent;
- new(): MSGestureEvent;
- readonly MSGESTURE_FLAG_BEGIN: number;
- readonly MSGESTURE_FLAG_CANCEL: number;
- readonly MSGESTURE_FLAG_END: number;
- readonly MSGESTURE_FLAG_INERTIA: number;
- readonly MSGESTURE_FLAG_NONE: number;
-};
-
/** The msGraphicsTrust() constructor returns an object that provides properties for info on protected video playback. */
interface MSGraphicsTrust {
readonly constrictionActive: boolean;
@@ -10017,25 +9891,6 @@ declare var MSMediaKeyError: {
readonly MS_MEDIA_KEYERR_UNKNOWN: number;
};
-interface MSMediaKeyMessageEvent extends Event {
- readonly destinationURL: string | null;
- readonly message: Uint8Array;
-}
-
-declare var MSMediaKeyMessageEvent: {
- prototype: MSMediaKeyMessageEvent;
- new(): MSMediaKeyMessageEvent;
-};
-
-interface MSMediaKeyNeededEvent extends Event {
- readonly initData: Uint8Array | null;
-}
-
-declare var MSMediaKeyNeededEvent: {
- prototype: MSMediaKeyNeededEvent;
- new(): MSMediaKeyNeededEvent;
-};
-
interface MSMediaKeySession extends EventTarget {
readonly error: MSMediaKeyError | null;
readonly keySystem: string;
@@ -10070,29 +9925,6 @@ interface MSNavigatorDoNotTrack {
storeWebWideTrackingException(args: StoreExceptionsInformation): void;
}
-interface MSPointerEvent extends MouseEvent {
- readonly currentPoint: any;
- readonly height: number;
- readonly hwTimestamp: number;
- readonly intermediatePoints: any;
- readonly isPrimary: boolean;
- readonly pointerId: number;
- readonly pointerType: any;
- readonly pressure: number;
- readonly rotation: number;
- readonly tiltX: number;
- readonly tiltY: number;
- readonly width: number;
- getCurrentPoint(element: Element): void;
- getIntermediatePoints(element: Element): void;
- initPointerEvent(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, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;
-}
-
-declare var MSPointerEvent: {
- prototype: MSPointerEvent;
- new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;
-};
-
interface MSStream {
readonly type: string;
msClose(): void;
@@ -10417,7 +10249,6 @@ declare var MediaStreamEvent: {
interface MediaStreamTrackEventMap {
"ended": Event;
- "isolationchange": Event;
"mute": Event;
"unmute": Event;
}
@@ -10426,12 +10257,10 @@ interface MediaStreamTrackEventMap {
interface MediaStreamTrack extends EventTarget {
enabled: boolean;
readonly id: string;
- readonly isolated: boolean;
readonly kind: string;
readonly label: string;
readonly muted: boolean;
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
- onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null;
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
readonly readyState: MediaStreamTrackState;
@@ -11436,11 +11265,10 @@ declare var Path2D: {
/** This Payment Request API interface is used to store shipping or payment address information. */
interface PaymentAddress {
- readonly addressLine: string[];
+ readonly addressLine: ReadonlyArray;
readonly city: string;
readonly country: string;
readonly dependentLocality: string;
- readonly languageCode: string;
readonly organization: string;
readonly phone: string;
readonly postalCode: string;
@@ -11455,7 +11283,18 @@ declare var PaymentAddress: {
new(): PaymentAddress;
};
+interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
+ readonly methodDetails: any;
+ readonly methodName: string;
+}
+
+declare var PaymentMethodChangeEvent: {
+ prototype: PaymentMethodChangeEvent;
+ new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
+};
+
interface PaymentRequestEventMap {
+ "paymentmethodchange": Event;
"shippingaddresschange": Event;
"shippingoptionchange": Event;
}
@@ -11463,6 +11302,7 @@ interface PaymentRequestEventMap {
/** 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;
@@ -11470,7 +11310,7 @@ interface PaymentRequest extends EventTarget {
readonly shippingType: PaymentShippingType | null;
abort(): Promise;
canMakePayment(): Promise;
- show(): Promise;
+ show(detailsPromise: PaymentDetailsUpdate | Promise): Promise;
addEventListener(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -11492,10 +11332,15 @@ 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 {
+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;
@@ -11503,7 +11348,12 @@ interface PaymentResponse {
readonly shippingAddress: PaymentAddress | null;
readonly shippingOption: string | null;
complete(result?: PaymentComplete): Promise;
+ retry(errorFields?: PaymentValidationErrors): Promise;
toJSON(): any;
+ addEventListener(type: K, listener: (this: PaymentResponse, ev: PaymentResponseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
+ removeEventListener(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: {
@@ -11957,7 +11807,6 @@ interface RTCCertificate {
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
- getSupportedAlgorithms(): AlgorithmIdentifier[];
};
interface RTCDTMFSenderEventMap {
@@ -11987,7 +11836,7 @@ interface RTCDTMFToneChangeEvent extends Event {
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
- new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
+ new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
@@ -11999,7 +11848,7 @@ interface RTCDataChannelEventMap {
}
interface RTCDataChannel extends EventTarget {
- binaryType: string;
+ binaryType: BinaryType;
readonly bufferedAmount: number;
bufferedAmountLowThreshold: number;
readonly id: number | null;
@@ -12013,7 +11862,6 @@ interface RTCDataChannel extends EventTarget {
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
- readonly priority: RTCPriorityType;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
close(): void;
@@ -12097,7 +11945,6 @@ declare var RTCDtmfSender: {
interface RTCError extends DOMException {
readonly errorDetail: RTCErrorDetailType;
- readonly httpRequestStatusCode: number | null;
readonly receivedAlert: number | null;
readonly sctpCauseCode: number | null;
readonly sdpLineNumber: number | null;
@@ -12190,7 +12037,6 @@ interface RTCIceTransportEventMap {
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
- readonly component: RTCIceComponent;
readonly gatheringState: RTCIceGathererState;
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
@@ -12241,7 +12087,6 @@ interface RTCPeerConnectionEventMap {
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
- "statsended": RTCStatsEvent;
"track": RTCTrackEvent;
}
@@ -12264,7 +12109,6 @@ interface RTCPeerConnection extends EventTarget {
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
- onstatsended: ((this: RTCPeerConnection, ev: RTCStatsEvent) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
readonly peerIdentity: Promise;
readonly pendingLocalDescription: RTCSessionDescription | null;
@@ -12286,7 +12130,8 @@ interface RTCPeerConnection extends EventTarget {
getStats(selector?: MediaStreamTrack | null): Promise;
getTransceivers(): RTCRtpTransceiver[];
removeTrack(sender: RTCRtpSender): void;
- setConfiguration(configuration: RTCConfiguration): void;
+ restartIce(): void;
+ setConfiguration(configuration?: RTCConfiguration): void;
setIdentityProvider(provider: string, options?: RTCIdentityProviderOptions): void;
setLocalDescription(description: RTCSessionDescriptionInit): Promise;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise;
@@ -12300,13 +12145,13 @@ declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise;
- getDefaultIceServers(): RTCIceServer[];
};
interface RTCPeerConnectionIceErrorEvent extends Event {
+ readonly address: string | null;
readonly errorCode: number;
readonly errorText: string;
- readonly hostCandidate: string;
+ readonly port: number | null;
readonly url: string;
}
@@ -12318,7 +12163,6 @@ declare var RTCPeerConnectionIceErrorEvent: {
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
interface RTCPeerConnectionIceEvent extends Event {
readonly candidate: RTCIceCandidate | null;
- readonly url: string | null;
}
declare var RTCPeerConnectionIceEvent: {
@@ -12328,7 +12172,6 @@ declare var RTCPeerConnectionIceEvent: {
/** This WebRTC API interface manages the reception and decoding of data for a MediaStreamTrack on an RTCPeerConnection. */
interface RTCRtpReceiver {
- readonly rtcpTransport: RTCDtlsTransport | null;
readonly track: MediaStreamTrack;
readonly transport: RTCDtlsTransport | null;
getContributingSources(): RTCRtpContributingSource[];
@@ -12346,7 +12189,6 @@ declare var RTCRtpReceiver: {
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
interface RTCRtpSender {
readonly dtmf: RTCDTMFSender | null;
- readonly rtcpTransport: RTCDtlsTransport | null;
readonly track: MediaStreamTrack | null;
readonly transport: RTCDtlsTransport | null;
getParameters(): RTCRtpSendParameters;
@@ -12407,7 +12249,7 @@ interface RTCSessionDescription {
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
- new(descriptionInitDict?: RTCSessionDescriptionInit): RTCSessionDescription;
+ new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
interface RTCSrtpSdesTransportEventMap {
@@ -12438,15 +12280,6 @@ declare var RTCSsrcConflictEvent: {
new(): RTCSsrcConflictEvent;
};
-interface RTCStatsEvent extends Event {
- readonly report: RTCStatsReport;
-}
-
-declare var RTCStatsEvent: {
- prototype: RTCStatsEvent;
- new(type: string, eventInitDict: RTCStatsEventInit): RTCStatsEvent;
-};
-
interface RTCStatsProvider extends EventTarget {
getStats(): Promise;
msGetStats(): Promise;
@@ -13931,46 +13764,6 @@ declare var SVGNumberList: {
interface SVGPathElement extends SVGGraphicsElement {
/** @deprecated */
readonly pathSegList: SVGPathSegList;
- /** @deprecated */
- createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;
- /** @deprecated */
- createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;
- /** @deprecated */
- createSVGPathSegClosePath(): SVGPathSegClosePath;
- /** @deprecated */
- createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;
- /** @deprecated */
- createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;
- /** @deprecated */
- createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;
- /** @deprecated */
- createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;
- /** @deprecated */
- createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;
- /** @deprecated */
- createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;
- /** @deprecated */
- createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;
- /** @deprecated */
- createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;
- /** @deprecated */
- createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;
- /** @deprecated */
- createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;
- /** @deprecated */
- createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;
- /** @deprecated */
- createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;
- /** @deprecated */
- createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;
- /** @deprecated */
- getPathSegAtLength(distance: number): number;
getPointAtLength(distance: number): SVGPoint;
getTotalLength(): number;
addEventListener(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -14408,25 +14201,11 @@ interface SVGSVGElementEventMap extends SVGElementEventMap {
/** Provides access to the properties of