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

@ -1,4 +1,4 @@
// Copyright 2018-2020 Signal Messenger, LLC
// Copyright 2018-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
@ -24,7 +24,7 @@ export class ExpireTimer extends React.Component<Props> {
this.interval = null;
}
public componentDidMount(): void {
public override componentDidMount(): void {
const { expirationLength } = this.props;
const increment = getIncrement(expirationLength);
const updateFrequency = Math.max(increment, 500);
@ -39,13 +39,13 @@ export class ExpireTimer extends React.Component<Props> {
this.interval = setInterval(update, updateFrequency);
}
public componentWillUnmount(): void {
public override componentWillUnmount(): void {
if (this.interval) {
clearInterval(this.interval);
}
}
public render(): JSX.Element {
public override render(): JSX.Element {
const {
direction,
expirationLength,