From 34f6f892646133a0e2b526a119bdc1e5cbc26564 Mon Sep 17 00:00:00 2001 From: Andrew Lavrentev Date: Thu, 21 Jan 2021 14:48:20 +0300 Subject: [PATCH] Feature/enhance typings (#2518) --- npm/janus.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/npm/janus.d.ts b/npm/janus.d.ts index bb6450e9cb..796dcbdfa2 100644 --- a/npm/janus.d.ts +++ b/npm/janus.d.ts @@ -5,9 +5,9 @@ declare namespace JanusJS { isArray: (array: any) => array is Array; extension: () => boolean; httpAPICall: (url: string, options: any) => void; - } - - interface DependenciesResult { + } + + interface DependenciesResult { adapter: any; newWebSocket: (server: string, protocol: string) => WebSocket; isArray: (array: any) => array is Array; @@ -127,6 +127,9 @@ declare namespace JanusJS { handleRemoteJsep(params: { jsep: JSEP }): void; dtmf(params: any): void; data(params: any): void; + isAudioMuted(): boolean; + muteAudio(): void; + unmuteAudio(): void; isVideoMuted(): boolean; muteVideo(): void; unmuteVideo(): void;