Upgrading flow and fixing lint errors
Summary: Upgrading to flow 0.91, fixing a bunch of `$FloxFixMe`s that were introduced by upgrading to 0.86. Also fixing some linting issues. Reviewed By: priteshrnandgaonkar Differential Revision: D13900794 fbshipit-source-id: 5d0a1b62371f3b5d34b909bae0876583acb6f977
This commit is contained in:
committed by
Facebook Github Bot
parent
88cc299811
commit
09a93cd9e6
@@ -10,6 +10,7 @@ import type BaseDevice from '../devices/BaseDevice.js';
|
||||
import type Client from '../Client.js';
|
||||
import type {UninitializedClient} from '../UninitializedClient.js';
|
||||
import type {PluginNotification} from '../reducers/notifications';
|
||||
import type {ActiveSheet} from '../reducers/application';
|
||||
|
||||
import {
|
||||
PureComponent,
|
||||
@@ -190,11 +191,11 @@ type MainSidebarProps = {|
|
||||
selectedApp: ?string,
|
||||
selectedDevice: ?BaseDevice,
|
||||
windowIsFocused: boolean,
|
||||
selectPlugin: (payload: {
|
||||
selectPlugin: (payload: {|
|
||||
selectedPlugin: ?string,
|
||||
selectedApp: ?string,
|
||||
deepLinkPayload: ?string,
|
||||
}) => void,
|
||||
|}) => void,
|
||||
clients: Array<Client>,
|
||||
uninitializedClients: Array<{
|
||||
client: UninitializedClient,
|
||||
@@ -204,7 +205,7 @@ type MainSidebarProps = {|
|
||||
numNotifications: number,
|
||||
devicePlugins: Map<string, Class<FlipperDevicePlugin<>>>,
|
||||
clientPlugins: Map<string, Class<FlipperPlugin<>>>,
|
||||
setActiveSheet: (activeSheet: ?string) => any,
|
||||
setActiveSheet: (activeSheet: ActiveSheet) => void,
|
||||
|};
|
||||
|
||||
class MainSidebar extends PureComponent<MainSidebarProps> {
|
||||
@@ -348,11 +349,7 @@ class MainSidebar extends PureComponent<MainSidebarProps> {
|
||||
}
|
||||
}
|
||||
|
||||
/* $FlowFixMe(>=0.86.0) This
|
||||
* comment suppresses an error found when Flow v0.86 was
|
||||
* deployed. To see the error, delete this comment and
|
||||
* run Flow. */
|
||||
export default connect(
|
||||
export default connect<MainSidebarProps, {||}, _, _, _, _>(
|
||||
({
|
||||
application: {windowIsFocused},
|
||||
connections: {
|
||||
|
||||
Reference in New Issue
Block a user