Enable noImplicitOverride
TypeScript compiler option
This commit is contained in:
parent
4490d9f2d0
commit
ede34ecee3
51 changed files with 339 additions and 194 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue