fix: add more explicit return types (#49567)

This commit is contained in:
Oliver Eyton-Williams
2023-03-02 17:26:40 +00:00
committed by GitHub
parent 5528ec39a2
commit 66438c271f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ export class Header extends React.Component<
}
// elementToFocus must be a link in the language menu
showLanguageMenu(elementToFocus: HTMLButtonElement | null) {
showLanguageMenu(elementToFocus: HTMLButtonElement | null): void {
this.setState({ isLanguageMenuDisplayed: true }, () =>
elementToFocus?.focus()
);