Pārlūkot izejas kodu

Fix TypeScript optional parameter on RtcEngine's options

Onur Var 4 gadus atpakaļ
vecāks
revīzija
0a0e6ab89a
2 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 2
    2
      lib/types.d.ts
  2. 2
    2
      src/types.ts

+ 2
- 2
lib/types.d.ts Parādīt failu

@@ -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 Parādīt failu

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