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();
|
this.updateBookmarks();
|
||||||
};
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {currentURI} = this.props;
|
const {currentURI} = this.props;
|
||||||
|
|||||||
@@ -391,9 +391,9 @@ export default class CPUFrequencyTable extends FlipperDevicePlugin<
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
teardown = () => {
|
teardown() {
|
||||||
this.cleanup();
|
this.cleanup();
|
||||||
};
|
}
|
||||||
|
|
||||||
buildRow = (freq: CPUFrequency, idx: number) => {
|
buildRow = (freq: CPUFrequency, idx: number) => {
|
||||||
const selected = this.state.selectedIds.indexOf(idx) >= 0;
|
const selected = this.state.selectedIds.indexOf(idx) >= 0;
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class SearchBar extends Component<Props, State> {
|
|||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
render = () => {
|
render() {
|
||||||
const {bookmarks, providers} = this.props;
|
const {bookmarks, providers} = this.props;
|
||||||
const {
|
const {
|
||||||
autoCompleteSheetOpen,
|
autoCompleteSheetOpen,
|
||||||
@@ -158,7 +158,7 @@ class SearchBar extends Component<Props, State> {
|
|||||||
</Toolbar>
|
</Toolbar>
|
||||||
</ToolbarContainer>
|
</ToolbarContainer>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default SearchBar;
|
export default SearchBar;
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export default class extends FlipperPlugin<State, any, PersistedState> {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount = () => {
|
componentDidMount() {
|
||||||
const {selectedApp} = this.props;
|
const {selectedApp} = this.props;
|
||||||
this.subscribeToNavigationEvents();
|
this.subscribeToNavigationEvents();
|
||||||
this.getDevice()
|
this.getDevice()
|
||||||
@@ -122,7 +122,7 @@ export default class extends FlipperPlugin<State, any, PersistedState> {
|
|||||||
bookmarksProvider: bookmarksToAutoCompleteProvider(bookmarks),
|
bookmarksProvider: bookmarksToAutoCompleteProvider(bookmarks),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
navigateTo = async (query: string) => {
|
navigateTo = async (query: string) => {
|
||||||
const filteredQuery = filterOptionalParameters(query);
|
const filteredQuery = filterOptionalParameters(query);
|
||||||
|
|||||||
Reference in New Issue
Block a user