@@ -827,13 +827,15 @@ interface MediaTrackCapabilities {
827
827
828
828
interface MediaTrackConstraintSet {
829
829
aspectRatio?: number | ConstrainDoubleRange;
830
+ channelCount?: number | ConstrainLongRange;
830
831
deviceId?: string | string[] | ConstrainDOMStringParameters;
831
832
displaySurface?: string | string[] | ConstrainDOMStringParameters;
832
- echoCancelation ?: boolean | ConstrainBooleanParameters;
833
+ echoCancellation ?: boolean | ConstrainBooleanParameters;
833
834
facingMode?: string | string[] | ConstrainDOMStringParameters;
834
835
frameRate?: number | ConstrainDoubleRange;
835
836
groupId?: string | string[] | ConstrainDOMStringParameters;
836
837
height?: number | ConstrainLongRange;
838
+ latency?: number | ConstrainDoubleRange;
837
839
logicalSurface?: boolean | ConstrainBooleanParameters;
838
840
sampleRate?: number | ConstrainLongRange;
839
841
sampleSize?: number | ConstrainLongRange;
@@ -3652,7 +3654,7 @@ interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent
3652
3654
/**
3653
3655
* Contains information about the current URL.
3654
3656
*/
3655
- readonly location: Location;
3657
+ location: Location | string ;
3656
3658
msCSSOMElementFloatMetrics: boolean;
3657
3659
msCapsLockWarningOff: boolean;
3658
3660
/**
@@ -7092,7 +7094,7 @@ declare var HTMLOptionElement: {
7092
7094
new(): HTMLOptionElement;
7093
7095
};
7094
7096
7095
- interface HTMLOptionsCollection extends HTMLCollectionBase {
7097
+ interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
7096
7098
length: number;
7097
7099
selectedIndex: number;
7098
7100
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
@@ -9346,7 +9348,7 @@ interface NavigatorUserMedia {
9346
9348
9347
9349
interface Node extends EventTarget {
9348
9350
readonly baseURI: string | null;
9349
- readonly childNodes: NodeList ;
9351
+ readonly childNodes: NodeListOf<Node & ChildNode> ;
9350
9352
readonly firstChild: Node | null;
9351
9353
readonly lastChild: Node | null;
9352
9354
readonly localName: string | null;
@@ -9696,7 +9698,7 @@ interface Path2D extends CanvasPathMethods {
9696
9698
9697
9699
declare var Path2D: {
9698
9700
prototype: Path2D;
9699
- new(path ?: Path2D): Path2D;
9701
+ new(d ?: Path2D | string ): Path2D;
9700
9702
};
9701
9703
9702
9704
interface PaymentAddress {
@@ -10337,19 +10339,19 @@ interface RTCPeerConnection extends EventTarget {
10337
10339
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
10338
10340
readonly remoteDescription: RTCSessionDescription | null;
10339
10341
readonly signalingState: RTCSignalingState;
10340
- addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback ): Promise<void>;
10342
+ addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate ): Promise<void>;
10341
10343
addStream(stream: MediaStream): void;
10342
10344
close(): void;
10343
- createAnswer(successCallback ?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback ): Promise<RTCSessionDescription >;
10344
- createOffer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<RTCSessionDescription >;
10345
+ createAnswer(options ?: RTCOfferOptions ): Promise<RTCSessionDescriptionInit >;
10346
+ createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit >;
10345
10347
getConfiguration(): RTCConfiguration;
10346
10348
getLocalStreams(): MediaStream[];
10347
10349
getRemoteStreams(): MediaStream[];
10348
10350
getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise<RTCStatsReport>;
10349
10351
getStreamById(streamId: string): MediaStream | null;
10350
10352
removeStream(stream: MediaStream): void;
10351
- setLocalDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback ): Promise<void>;
10352
- setRemoteDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback ): Promise<void>;
10353
+ setLocalDescription(description: RTCSessionDescriptionInit ): Promise<void>;
10354
+ setRemoteDescription(description: RTCSessionDescriptionInit ): Promise<void>;
10353
10355
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10354
10356
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10355
10357
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -14907,7 +14909,7 @@ interface Window extends EventTarget, WindowTimers, WindowSessionStorage, Window
14907
14909
readonly innerWidth: number;
14908
14910
readonly isSecureContext: boolean;
14909
14911
readonly length: number;
14910
- readonly location: Location;
14912
+ location: Location | string ;
14911
14913
readonly locationbar: BarProp;
14912
14914
readonly menubar: BarProp;
14913
14915
readonly msContentScript: ExtensionScriptApis;
@@ -15716,7 +15718,7 @@ declare var innerHeight: number;
15716
15718
declare var innerWidth: number;
15717
15719
declare var isSecureContext: boolean;
15718
15720
declare var length: number;
15719
- declare var location: Location;
15721
+ declare var location: Location | string ;
15720
15722
declare var locationbar: BarProp;
15721
15723
declare var menubar: BarProp;
15722
15724
declare var msContentScript: ExtensionScriptApis;
0 commit comments