Prepare for TypeScript 3.7

Summary:
These are the only four errors currently happening when upgrading to the 3.7 beta.
Luckily, these are all forwards-compatible changes.

Reviewed By: jknoxville

Differential Revision: D17711797

fbshipit-source-id: 429036e90300c81848cc3252b67bb89871ff2e32
This commit is contained in:
Pascal Hartig
2019-10-02 08:34:30 -07:00
committed by Facebook Github Bot
parent 52976f1ee3
commit 1de1bbaf8a
4 changed files with 8 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ class SearchBar extends Component<Props, State> {
return null;
};
render = () => {
render() {
const {bookmarks, providers} = this.props;
const {
autoCompleteSheetOpen,
@@ -158,7 +158,7 @@ class SearchBar extends Component<Props, State> {
</Toolbar>
</ToolbarContainer>
);
};
}
}
export default SearchBar;

View File

@@ -100,7 +100,7 @@ export default class extends FlipperPlugin<State, any, PersistedState> {
);
};
componentDidMount = () => {
componentDidMount() {
const {selectedApp} = this.props;
this.subscribeToNavigationEvents();
this.getDevice()
@@ -122,7 +122,7 @@ export default class extends FlipperPlugin<State, any, PersistedState> {
bookmarksProvider: bookmarksToAutoCompleteProvider(bookmarks),
});
});
};
}
navigateTo = async (query: string) => {
const filteredQuery = filterOptionalParameters(query);