Enable noImplicitOverride TypeScript compiler option

This commit is contained in:
Evan Hahn 2021-11-12 17:44:20 -06:00 committed by GitHub
parent 4490d9f2d0
commit ede34ecee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 339 additions and 194 deletions

View file

@ -65,7 +65,7 @@ export class MainHeader extends React.Component<PropsType, StateType> {
};
}
public componentDidUpdate(prevProps: PropsType): void {
public override componentDidUpdate(prevProps: PropsType): void {
const { searchConversation, startSearchCounter } = this.props;
// When user chooses to search in a given conversation we focus the field for them
@ -119,11 +119,11 @@ export class MainHeader extends React.Component<PropsType, StateType> {
}
};
public componentDidMount(): void {
public override componentDidMount(): void {
document.addEventListener('keydown', this.handleGlobalKeyDown);
}
public componentWillUnmount(): void {
public override componentWillUnmount(): void {
const { popperRoot } = this.state;
document.removeEventListener('click', this.handleOutsideClick);
@ -191,7 +191,7 @@ export class MainHeader extends React.Component<PropsType, StateType> {
}
};
public render(): JSX.Element {
public override render(): JSX.Element {
const {
avatarPath,
badge,