From 0a0e6ab89a280bf1daa9198951d294e2c94a9f16 Mon Sep 17 00:00:00 2001 From: Onur Var Date: Wed, 29 Jan 2020 13:53:14 +0300 Subject: [PATCH] Fix TypeScript optional parameter on RtcEngine's options --- lib/types.d.ts | 4 ++-- src/types.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/types.d.ts b/lib/types.d.ts index 805c5df24..82a32cdce 100644 --- a/lib/types.d.ts +++ b/lib/types.d.ts @@ -78,8 +78,8 @@ export interface Option { appid: String; channelProfile: number; videoEncoderConfig: VideoEncoderConfig; - dualStream: boolean; - mode: number; + dualStream?: boolean; + mode?: number; clientRole: number; audioProfile: number; audioScenario: number; diff --git a/src/types.ts b/src/types.ts index acc232946..b4443a5b5 100644 --- a/src/types.ts +++ b/src/types.ts @@ -83,8 +83,8 @@ export interface Option { appid: String, channelProfile: number, videoEncoderConfig: VideoEncoderConfig, - dualStream: boolean, - mode: number, + dualStream?: boolean, + mode?: number, clientRole: number, audioProfile: number, audioScenario: number,