Fix eslint & flow errors

Prepares for the latest eslint & flow-related npm packages which cause
these errors.
This commit is contained in:
Lyubo Marinov
2017-11-16 12:26:14 -06:00
parent 30be46326a
commit 8fd91573fc
21 changed files with 69 additions and 45 deletions

View File

@@ -1,3 +1,5 @@
// @flow
import PropTypes from 'prop-types';
import React, { Component } from 'react';
@@ -20,7 +22,7 @@ declare var interfaceConfig: Object;
*
* @extends {Component}
*/
class RemoteVideoMenuTriggerButton extends Component {
class RemoteVideoMenuTriggerButton extends Component<*> {
static propTypes = {
/**
* A value between 0 and 1 indicating the volume of the participant's
@@ -66,25 +68,25 @@ class RemoteVideoMenuTriggerButton extends Component {
remoteControlState: PropTypes.number
};
/**
* The internal reference to topmost DOM/HTML element backing the React
* {@code Component}. Accessed directly for associating an element as
* the trigger for a popover.
*
* @private
* @type {HTMLDivElement}
*/
_rootElement = null;
/**
* Initializes a new {#@code RemoteVideoMenuTriggerButton} instance.
*
* @param {Object} props - The read-only properties with which the new
* instance is to be initialized.
*/
constructor(props) {
constructor(props: Object) {
super(props);
/**
* The internal reference to topmost DOM/HTML element backing the React
* {@code Component}. Accessed directly for associating an element as
* the trigger for a popover.
*
* @private
* @type {HTMLDivElement}
*/
this._rootElement = null;
// Bind event handler so it is only bound once for every instance.
this._onShowRemoteMenu = this._onShowRemoteMenu.bind(this);
}
@@ -118,6 +120,8 @@ class RemoteVideoMenuTriggerButton extends Component {
);
}
_onShowRemoteMenu: () => void;
/**
* Opens the {@code RemoteVideoMenu}.
*