From ab60c9b5da974c8f68418773e4956e0a7b3b6040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Tue, 9 Mar 2021 08:08:59 +0100 Subject: [PATCH] Add HTMLAudioElement and HTMLVideoElement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/@types/global.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/@types/global.d.ts b/src/@types/global.d.ts index 4aa6df5488..ef3922327a 100644 --- a/src/@types/global.d.ts +++ b/src/@types/global.d.ts @@ -110,6 +110,16 @@ declare global { interface HTMLAudioElement { type?: string; + // sinkId & setSinkId are experimental and typescript doesn't know about them + sinkId: string; + setSinkId(outputId: string); + } + + interface HTMLVideoElement { + type?: string; + // sinkId & setSinkId are experimental and typescript doesn't know about them + sinkId: string; + setSinkId(outputId: string); } interface Element {