Add missing TS type in DetailsSidebar (#1062)

Summary:
Adds missing TS for Store type in `react-redux` `connect`, same as in other components.

## Changelog

Internal change: Typescript typings improved.
Pull Request resolved: https://github.com/facebook/flipper/pull/1062

Test Plan: Try to compile/do a type check.

Reviewed By: jknoxville

Differential Revision: D21256256

Pulled By: passy

fbshipit-source-id: 55dea7d40a6874e924983806a298301aeffa772f
This commit is contained in:
Radek Czemerys
2020-04-27 07:27:54 -07:00
committed by Facebook GitHub Bot
parent 773b0b7f67
commit 3cc0ca3130

View File

@@ -12,6 +12,7 @@ import ReactDOM from 'react-dom';
import Sidebar from '../ui/components/Sidebar'; import Sidebar from '../ui/components/Sidebar';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import {toggleRightSidebarAvailable} from '../reducers/application'; import {toggleRightSidebarAvailable} from '../reducers/application';
import {State as Store} from '../reducers';
type OwnProps = { type OwnProps = {
children: any; children: any;
@@ -64,8 +65,6 @@ class DetailSidebar extends React.Component<Props> {
} }
} }
// @TODO: TS_MIGRATION
type Store = any;
export default connect<StateFromProps, DispatchFromProps, OwnProps, Store>( export default connect<StateFromProps, DispatchFromProps, OwnProps, Store>(
({application: {rightSidebarVisible, rightSidebarAvailable}}) => ({ ({application: {rightSidebarVisible, rightSidebarAvailable}}) => ({
rightSidebarVisible, rightSidebarVisible,