From 2637d90df06cf43fadb76be64a047f33e799a67f Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Thu, 1 Oct 2020 11:16:20 -0500 Subject: [PATCH] Minor: remove two `any`s from `<CallScreen>` --- ts/components/CallScreen.tsx | 6 ++---- ts/util/lint/exceptions.json | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ts/components/CallScreen.tsx b/ts/components/CallScreen.tsx index eefe29e99d8..113e060c856 100644 --- a/ts/components/CallScreen.tsx +++ b/ts/components/CallScreen.tsx @@ -56,11 +56,9 @@ type StateType = { }; export class CallScreen extends React.Component<PropsType, StateType> { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - private interval: any; + private interval: NodeJS.Timeout | null; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - private controlsFadeTimer: any; + private controlsFadeTimer: NodeJS.Timeout | null; private readonly localVideoRef: React.RefObject<HTMLVideoElement>; diff --git a/ts/util/lint/exceptions.json b/ts/util/lint/exceptions.json index 7e62c43c6e9..f0a85158855 100644 --- a/ts/util/lint/exceptions.json +++ b/ts/util/lint/exceptions.json @@ -12863,7 +12863,7 @@ "rule": "React-createRef", "path": "ts/components/CallScreen.tsx", "line": " this.localVideoRef = React.createRef();", - "lineNumber": 80, + "lineNumber": 78, "reasonCategory": "usageTrusted", "updated": "2020-06-02T21:51:34.813Z", "reasonDetail": "Used to render local preview video" @@ -12872,7 +12872,7 @@ "rule": "React-createRef", "path": "ts/components/CallScreen.tsx", "line": " this.remoteVideoRef = React.createRef();", - "lineNumber": 81, + "lineNumber": 79, "reasonCategory": "usageTrusted", "updated": "2020-09-14T23:03:44.863Z" },