ref(types): use IntervalID and TimeoutID types defined by flow
This commit is contained in:
parent
c6d553738f
commit
2b20c55bfe
|
@ -75,9 +75,9 @@ class CalleeInfo extends Component<Props, State> {
|
||||||
|
|
||||||
_onLargeVideoAvatarVisible: Function;
|
_onLargeVideoAvatarVisible: Function;
|
||||||
|
|
||||||
_playAudioInterval: *;
|
_playAudioInterval: ?IntervalID;
|
||||||
|
|
||||||
_ringingTimeout: *;
|
_ringingTimeout: ?TimeoutID;
|
||||||
|
|
||||||
_setAudio: Function;
|
_setAudio: Function;
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@ type State = {
|
||||||
* screen when another meeting is about to start.
|
* screen when another meeting is about to start.
|
||||||
*/
|
*/
|
||||||
class ConferenceNotification extends Component<Props, State> {
|
class ConferenceNotification extends Component<Props, State> {
|
||||||
updateIntervalId: *;
|
updateIntervalId: IntervalID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor of the ConferenceNotification component.
|
* Constructor of the ConferenceNotification component.
|
||||||
|
|
|
@ -88,7 +88,7 @@ export default class AbstractPageReloadOverlay extends Component<*, *> {
|
||||||
|| configError);
|
|| configError);
|
||||||
}
|
}
|
||||||
|
|
||||||
_interval: *;
|
_interval: ?IntervalID;
|
||||||
|
|
||||||
state: {
|
state: {
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ type State = {
|
||||||
* @extends {Component}
|
* @extends {Component}
|
||||||
*/
|
*/
|
||||||
class RecordingLabel extends AbstractRecordingLabel<Props, State> {
|
class RecordingLabel extends AbstractRecordingLabel<Props, State> {
|
||||||
_autohideTimeout: *;
|
_autohideTimeout: TimeoutID;
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
hidden: false
|
hidden: false
|
||||||
|
|
|
@ -45,7 +45,7 @@ class SpeakerStats extends Component<*, *> {
|
||||||
stats: {}
|
stats: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
_updateInterval: *;
|
_updateInterval: IntervalID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initializes a new SpeakerStats instance.
|
* Initializes a new SpeakerStats instance.
|
||||||
|
|
Loading…
Reference in New Issue