瀏覽代碼

ref(types): use IntervalID and TimeoutID types defined by flow

master
paweldomas 7 年之前
父節點
當前提交
2b20c55bfe

+ 2
- 2
react/features/base/jwt/components/CalleeInfo.js 查看文件

@@ -75,9 +75,9 @@ class CalleeInfo extends Component<Props, State> {
75 75
 
76 76
     _onLargeVideoAvatarVisible: Function;
77 77
 
78
-    _playAudioInterval: *;
78
+    _playAudioInterval: ?IntervalID;
79 79
 
80
-    _ringingTimeout: *;
80
+    _ringingTimeout: ?TimeoutID;
81 81
 
82 82
     _setAudio: Function;
83 83
 

+ 1
- 1
react/features/calendar-sync/components/ConferenceNotification.native.js 查看文件

@@ -64,7 +64,7 @@ type State = {
64 64
  * screen when another meeting is about to start.
65 65
  */
66 66
 class ConferenceNotification extends Component<Props, State> {
67
-    updateIntervalId: *;
67
+    updateIntervalId: IntervalID;
68 68
 
69 69
     /**
70 70
      * Constructor of the ConferenceNotification component.

+ 1
- 1
react/features/overlay/components/AbstractPageReloadOverlay.js 查看文件

@@ -88,7 +88,7 @@ export default class AbstractPageReloadOverlay extends Component<*, *> {
88 88
                 || configError);
89 89
     }
90 90
 
91
-    _interval: *;
91
+    _interval: ?IntervalID;
92 92
 
93 93
     state: {
94 94
 

+ 1
- 1
react/features/recording/components/RecordingLabel.web.js 查看文件

@@ -98,7 +98,7 @@ type State = {
98 98
  * @extends {Component}
99 99
  */
100 100
 class RecordingLabel extends AbstractRecordingLabel<Props, State> {
101
-    _autohideTimeout: *;
101
+    _autohideTimeout: TimeoutID;
102 102
 
103 103
     state = {
104 104
         hidden: false

+ 1
- 1
react/features/speaker-stats/components/SpeakerStats.js 查看文件

@@ -45,7 +45,7 @@ class SpeakerStats extends Component<*, *> {
45 45
         stats: {}
46 46
     };
47 47
 
48
-    _updateInterval: *;
48
+    _updateInterval: IntervalID;
49 49
 
50 50
     /**
51 51
      * Initializes a new SpeakerStats instance.

Loading…
取消
儲存