Skip to content

Commit ce62e17

Browse files
committed
Port #386
1 parent 5484c6e commit ce62e17

File tree

2 files changed

+42
-5
lines changed

2 files changed

+42
-5
lines changed

baselines/dom.generated.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10337,19 +10337,19 @@ interface RTCPeerConnection extends EventTarget {
1033710337
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
1033810338
readonly remoteDescription: RTCSessionDescription | null;
1033910339
readonly signalingState: RTCSignalingState;
10340-
addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise<void>;
10340+
addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;
1034110341
addStream(stream: MediaStream): void;
1034210342
close(): void;
10343-
createAnswer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise<RTCSessionDescription>;
10344-
createOffer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<RTCSessionDescription>;
10343+
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
10344+
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
1034510345
getConfiguration(): RTCConfiguration;
1034610346
getLocalStreams(): MediaStream[];
1034710347
getRemoteStreams(): MediaStream[];
1034810348
getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise<RTCStatsReport>;
1034910349
getStreamById(streamId: string): MediaStream | null;
1035010350
removeStream(stream: MediaStream): void;
10351-
setLocalDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise<void>;
10352-
setRemoteDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise<void>;
10351+
setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;
10352+
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
1035310353
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1035410354
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1035510355
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;

inputfiles/overridingTypes.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,43 @@
18291829
}
18301830
}
18311831
}
1832+
},
1833+
"RTCPeerConnection": {
1834+
"name": "RTCPeerConnection",
1835+
"methods": {
1836+
"method": {
1837+
"createAnswer": {
1838+
"name": "createAnswer",
1839+
"override-signatures": [
1840+
"createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>"
1841+
]
1842+
},
1843+
"createOffer": {
1844+
"name": "createOffer",
1845+
"override-signatures": [
1846+
"createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>"
1847+
]
1848+
},
1849+
"setLocalDescription": {
1850+
"name": "setLocalDescription",
1851+
"override-signatures": [
1852+
"setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>"
1853+
]
1854+
},
1855+
"setRemoteDescription": {
1856+
"name": "setRemoteDescription",
1857+
"override-signatures": [
1858+
"setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>"
1859+
]
1860+
},
1861+
"addIceCandidate": {
1862+
"name": "addIceCandidate",
1863+
"override-signatures": [
1864+
"addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>"
1865+
]
1866+
}
1867+
}
1868+
}
18321869
}
18331870
}
18341871
},

0 commit comments

Comments
 (0)