Skip to content

Commit 3480bf2

Browse files
authored
Port generated lib files (#22437)
* Port generated lib files * Update line breaks
1 parent c335c38 commit 3480bf2

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

src/lib/dom.generated.d.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -827,13 +827,15 @@ interface MediaTrackCapabilities {
827827

828828
interface MediaTrackConstraintSet {
829829
aspectRatio?: number | ConstrainDoubleRange;
830+
channelCount?: number | ConstrainLongRange;
830831
deviceId?: string | string[] | ConstrainDOMStringParameters;
831832
displaySurface?: string | string[] | ConstrainDOMStringParameters;
832-
echoCancelation?: boolean | ConstrainBooleanParameters;
833+
echoCancellation?: boolean | ConstrainBooleanParameters;
833834
facingMode?: string | string[] | ConstrainDOMStringParameters;
834835
frameRate?: number | ConstrainDoubleRange;
835836
groupId?: string | string[] | ConstrainDOMStringParameters;
836837
height?: number | ConstrainLongRange;
838+
latency?: number | ConstrainDoubleRange;
837839
logicalSurface?: boolean | ConstrainBooleanParameters;
838840
sampleRate?: number | ConstrainLongRange;
839841
sampleSize?: number | ConstrainLongRange;
@@ -3652,7 +3654,7 @@ interface Document extends Node, GlobalEventHandlers, ParentNode, DocumentEvent
36523654
/**
36533655
* Contains information about the current URL.
36543656
*/
3655-
readonly location: Location;
3657+
location: Location | string;
36563658
msCSSOMElementFloatMetrics: boolean;
36573659
msCapsLockWarningOff: boolean;
36583660
/**
@@ -7092,7 +7094,7 @@ declare var HTMLOptionElement: {
70927094
new(): HTMLOptionElement;
70937095
};
70947096

7095-
interface HTMLOptionsCollection extends HTMLCollectionBase {
7097+
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
70967098
length: number;
70977099
selectedIndex: number;
70987100
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
@@ -9346,7 +9348,7 @@ interface NavigatorUserMedia {
93469348

93479349
interface Node extends EventTarget {
93489350
readonly baseURI: string | null;
9349-
readonly childNodes: NodeList;
9351+
readonly childNodes: NodeListOf<Node & ChildNode>;
93509352
readonly firstChild: Node | null;
93519353
readonly lastChild: Node | null;
93529354
readonly localName: string | null;
@@ -9696,7 +9698,7 @@ interface Path2D extends CanvasPathMethods {
96969698

96979699
declare var Path2D: {
96989700
prototype: Path2D;
9699-
new(path?: Path2D): Path2D;
9701+
new(d?: Path2D | string): Path2D;
97009702
};
97019703

97029704
interface PaymentAddress {
@@ -10337,19 +10339,19 @@ interface RTCPeerConnection extends EventTarget {
1033710339
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
1033810340
readonly remoteDescription: RTCSessionDescription | null;
1033910341
readonly signalingState: RTCSignalingState;
10340-
addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise<void>;
10342+
addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;
1034110343
addStream(stream: MediaStream): void;
1034210344
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>;
1034510347
getConfiguration(): RTCConfiguration;
1034610348
getLocalStreams(): MediaStream[];
1034710349
getRemoteStreams(): MediaStream[];
1034810350
getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise<RTCStatsReport>;
1034910351
getStreamById(streamId: string): MediaStream | null;
1035010352
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>;
1035310355
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1035410356
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1035510357
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
1490714909
readonly innerWidth: number;
1490814910
readonly isSecureContext: boolean;
1490914911
readonly length: number;
14910-
readonly location: Location;
14912+
location: Location | string;
1491114913
readonly locationbar: BarProp;
1491214914
readonly menubar: BarProp;
1491314915
readonly msContentScript: ExtensionScriptApis;
@@ -15716,7 +15718,7 @@ declare var innerHeight: number;
1571615718
declare var innerWidth: number;
1571715719
declare var isSecureContext: boolean;
1571815720
declare var length: number;
15719-
declare var location: Location;
15721+
declare var location: Location | string;
1572015722
declare var locationbar: BarProp;
1572115723
declare var menubar: BarProp;
1572215724
declare var msContentScript: ExtensionScriptApis;

0 commit comments

Comments
 (0)