correct isSupported type (#43419)

it’s not actually a function, it’s a boolean property
This commit is contained in:
Adam Montgomery
2020-03-28 11:51:29 -07:00
committed by GitHub
parent 687d92d01f
commit 7d7387e5a3
+2 -1
View File
@@ -5,6 +5,7 @@
// katashin <https://github.com/ktsn>
// Benjamin Santalucia <https://github.com/ben8p>
// Erick Delfin <https://github.com/nifled>
// Adam Montgomery <https://github.com/howitzer-industries>
// 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<Room>;
export function createLocalAudioTrack(options?: CreateLocalTrackOptions): Promise<LocalAudioTrack>;
export function createLocalTracks(options?: CreateLocalTracksOptions): Promise<LocalTrack[]>;
export function createLocalVideoTrack(options?: CreateLocalTrackOptions): Promise<LocalVideoTrack>;
export function isSupported(): boolean;
export function rewriteLocalTrackIds(room: Room, trackStats: LocalTrackStats[]): LocalTrackStats[];
/** Type Definitions */