From 7d7387e5a33b3c4cb85f2d8e6d33565cb169694e Mon Sep 17 00:00:00 2001 From: Adam Montgomery Date: Sat, 28 Mar 2020 13:51:29 -0500 Subject: [PATCH] correct isSupported type (#43419) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it’s not actually a function, it’s a boolean property --- types/twilio-video/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/twilio-video/index.d.ts b/types/twilio-video/index.d.ts index a3ccc62768..f55c2106dc 100644 --- a/types/twilio-video/index.d.ts +++ b/types/twilio-video/index.d.ts @@ -5,6 +5,7 @@ // katashin // Benjamin Santalucia // Erick Delfin +// Adam Montgomery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -487,6 +488,7 @@ export class VideoTrack extends Track { * Global (https://media.twiliocdn.com/sdk/js/video/releases/2.0.0-beta1/docs/global.html) */ export const version: string; +export const isSupported: boolean; /** Members */ export type AudioCodec = 'isac' | 'opus' | 'PCMA' | 'PCMU'; @@ -498,7 +500,6 @@ export function connect(token: string, options?: ConnectOptions): Promise; export function createLocalAudioTrack(options?: CreateLocalTrackOptions): Promise; export function createLocalTracks(options?: CreateLocalTracksOptions): Promise; export function createLocalVideoTrack(options?: CreateLocalTrackOptions): Promise; -export function isSupported(): boolean; export function rewriteLocalTrackIds(room: Room, trackStats: LocalTrackStats[]): LocalTrackStats[]; /** Type Definitions */