From ed82d9383af00d75da6a74f63579cb3e7f9fe585 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 7 Dec 2023 16:43:31 +0000 Subject: [PATCH] fix: add constructor args to RTCSessionDescription polyfill Adds init dict so it's usable from typescript. --- polyfill/RTCSessionDescription.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/polyfill/RTCSessionDescription.d.ts b/polyfill/RTCSessionDescription.d.ts index 914b3db..6aff727 100644 --- a/polyfill/RTCSessionDescription.d.ts +++ b/polyfill/RTCSessionDescription.d.ts @@ -4,4 +4,5 @@ export default class _RTCSessionDescription implements RTCSessionDescription { readonly sdp: string; readonly type: RTCSdpType; toJSON(): any; + constructor(descriptionInitDict?: RTCSessionDescriptionInit); }