Browse Source

Merge pull request #125 from OnurVar/master

Fix TypeScript optional parameter on RtcEngine's options
matrixbirds 4 years ago
parent
commit
b02c061da0
No account linked to committer's email address
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      lib/types.d.ts
  2. 2
    2
      src/types.ts

+ 2
- 2
lib/types.d.ts View File

78
     appid: String;
78
     appid: String;
79
     channelProfile: number;
79
     channelProfile: number;
80
     videoEncoderConfig: VideoEncoderConfig;
80
     videoEncoderConfig: VideoEncoderConfig;
81
-    dualStream: boolean;
82
-    mode: number;
81
+    dualStream?: boolean;
82
+    mode?: number;
83
     clientRole: number;
83
     clientRole: number;
84
     audioProfile: number;
84
     audioProfile: number;
85
     audioScenario: number;
85
     audioScenario: number;

+ 2
- 2
src/types.ts View File

83
   appid: String,
83
   appid: String,
84
   channelProfile: number,
84
   channelProfile: number,
85
   videoEncoderConfig: VideoEncoderConfig,
85
   videoEncoderConfig: VideoEncoderConfig,
86
-  dualStream: boolean,
87
-  mode: number,
86
+  dualStream?: boolean,
87
+  mode?: number,
88
   clientRole: number,
88
   clientRole: number,
89
   audioProfile: number,
89
   audioProfile: number,
90
   audioScenario: number,
90
   audioScenario: number,