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,8 +78,8 @@ export interface Option {
78 78
     appid: String;
79 79
     channelProfile: number;
80 80
     videoEncoderConfig: VideoEncoderConfig;
81
-    dualStream: boolean;
82
-    mode: number;
81
+    dualStream?: boolean;
82
+    mode?: number;
83 83
     clientRole: number;
84 84
     audioProfile: number;
85 85
     audioScenario: number;

+ 2
- 2
src/types.ts View File

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