From 3cc0ca3130ea41720426039be6b5362423cf353d Mon Sep 17 00:00:00 2001 From: Radek Czemerys Date: Mon, 27 Apr 2020 07:27:54 -0700 Subject: [PATCH] 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 --- desktop/app/src/chrome/DetailSidebar.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desktop/app/src/chrome/DetailSidebar.tsx b/desktop/app/src/chrome/DetailSidebar.tsx index 910f6e070..1924fff6d 100644 --- a/desktop/app/src/chrome/DetailSidebar.tsx +++ b/desktop/app/src/chrome/DetailSidebar.tsx @@ -12,6 +12,7 @@ import ReactDOM from 'react-dom'; import Sidebar from '../ui/components/Sidebar'; import {connect} from 'react-redux'; import {toggleRightSidebarAvailable} from '../reducers/application'; +import {State as Store} from '../reducers'; type OwnProps = { children: any; @@ -64,8 +65,6 @@ class DetailSidebar extends React.Component { } } -// @TODO: TS_MIGRATION -type Store = any; export default connect( ({application: {rightSidebarVisible, rightSidebarAvailable}}) => ({ rightSidebarVisible,