Browse Source

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

master
paweldomas 7 years ago
parent
commit
2b20c55bfe

+ 2
- 2
react/features/base/jwt/components/CalleeInfo.js View File

75
 
75
 
76
     _onLargeVideoAvatarVisible: Function;
76
     _onLargeVideoAvatarVisible: Function;
77
 
77
 
78
-    _playAudioInterval: *;
78
+    _playAudioInterval: ?IntervalID;
79
 
79
 
80
-    _ringingTimeout: *;
80
+    _ringingTimeout: ?TimeoutID;
81
 
81
 
82
     _setAudio: Function;
82
     _setAudio: Function;
83
 
83
 

+ 1
- 1
react/features/calendar-sync/components/ConferenceNotification.native.js View File

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

+ 1
- 1
react/features/overlay/components/AbstractPageReloadOverlay.js View File

88
                 || configError);
88
                 || configError);
89
     }
89
     }
90
 
90
 
91
-    _interval: *;
91
+    _interval: ?IntervalID;
92
 
92
 
93
     state: {
93
     state: {
94
 
94
 

+ 1
- 1
react/features/recording/components/RecordingLabel.web.js View File

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

+ 1
- 1
react/features/speaker-stats/components/SpeakerStats.js View File

45
         stats: {}
45
         stats: {}
46
     };
46
     };
47
 
47
 
48
-    _updateInterval: *;
48
+    _updateInterval: IntervalID;
49
 
49
 
50
     /**
50
     /**
51
      * Initializes a new SpeakerStats instance.
51
      * Initializes a new SpeakerStats instance.

Loading…
Cancel
Save