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:
committed by
Facebook Github Bot
parent
52976f1ee3
commit
1de1bbaf8a
@@ -99,9 +99,9 @@ class LocationsButton extends Component<Props, State> {
|
||||
});
|
||||
};
|
||||
|
||||
componentDidMount = () => {
|
||||
componentDidMount() {
|
||||
this.updateBookmarks();
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
const {currentURI} = this.props;
|
||||
|
||||
@@ -391,9 +391,9 @@ export default class CPUFrequencyTable extends FlipperDevicePlugin<
|
||||
});
|
||||
};
|
||||
|
||||
teardown = () => {
|
||||
teardown() {
|
||||
this.cleanup();
|
||||
};
|
||||
}
|
||||
|
||||
buildRow = (freq: CPUFrequency, idx: number) => {
|
||||
const selected = this.state.selectedIds.indexOf(idx) >= 0;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user