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

This commit is contained in:
paweldomas 2018-05-29 14:54:29 -05:00 committed by Lyubo Marinov
parent c6d553738f
commit 2b20c55bfe
5 changed files with 6 additions and 6 deletions

View File

@ -75,9 +75,9 @@ class CalleeInfo extends Component<Props, State> {
_onLargeVideoAvatarVisible: Function;
_playAudioInterval: *;
_playAudioInterval: ?IntervalID;
_ringingTimeout: *;
_ringingTimeout: ?TimeoutID;
_setAudio: Function;

View File

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

View File

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

View File

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

View File

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