diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index cb6a4dc7f..d6a9ede1f 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -9618,19 +9618,19 @@ interface RTCPeerConnection extends EventTarget { onsignalingstatechange: (this: RTCPeerConnection, ev: Event) => any; readonly remoteDescription: RTCSessionDescription | null; readonly signalingState: RTCSignalingState; - addIceCandidate(candidate: RTCIceCandidate, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; + addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise; addStream(stream: MediaStream): void; close(): void; - createAnswer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise; - createOffer(successCallback?: RTCSessionDescriptionCallback, failureCallback?: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise; + createAnswer(options?: RTCAnswerOptions): Promise; + createOffer(options?: RTCOfferOptions): Promise; getConfiguration(): RTCConfiguration; getLocalStreams(): MediaStream[]; getRemoteStreams(): MediaStream[]; getStats(selector: MediaStreamTrack | null, successCallback?: RTCStatsCallback, failureCallback?: RTCPeerConnectionErrorCallback): Promise; getStreamById(streamId: string): MediaStream | null; removeStream(stream: MediaStream): void; - setLocalDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; - setRemoteDescription(description: RTCSessionDescription, successCallback?: VoidFunction, failureCallback?: RTCPeerConnectionErrorCallback): Promise; + setLocalDescription(description: RTCSessionDescriptionInit): Promise; + setRemoteDescription(description: RTCSessionDescriptionInit): Promise; addEventListener(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void; diff --git a/inputfiles/overridingTypes.json b/inputfiles/overridingTypes.json index 9216597bc..f0e959c4d 100644 --- a/inputfiles/overridingTypes.json +++ b/inputfiles/overridingTypes.json @@ -1854,5 +1854,45 @@ "name": "type", "readonly": true, "type": "MutationRecordType" + }, + { + "kind": "method", + "name": "createAnswer", + "interface": "RTCPeerConnection", + "signatures": [ + "createAnswer(options?: RTCAnswerOptions): Promise" + ] + }, + { + "kind": "method", + "name": "createOffer", + "interface": "RTCPeerConnection", + "signatures": [ + "createOffer(options?: RTCOfferOptions): Promise" + ] + }, + { + "kind": "method", + "name": "setLocalDescription", + "interface": "RTCPeerConnection", + "signatures": [ + "setLocalDescription(description: RTCSessionDescriptionInit): Promise" + ] + }, + { + "kind": "method", + "name": "setRemoteDescription", + "interface": "RTCPeerConnection", + "signatures": [ + "setRemoteDescription(description: RTCSessionDescriptionInit): Promise" + ] + }, + { + "kind": "method", + "name": "addIceCandidate", + "interface": "RTCPeerConnection", + "signatures": [ + "addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise" + ] } ] \ No newline at end of file