瀏覽代碼

Merge pull request #125 from OnurVar/master

Fix TypeScript optional parameter on RtcEngine's options
matrixbirds 4 年之前
父節點
當前提交
b02c061da0
No account linked to committer's email address
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2
    2
      lib/types.d.ts
  2. 2
    2
      src/types.ts

+ 2
- 2
lib/types.d.ts 查看文件

@@ -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 查看文件

@@ -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,