Skip to content

Commit

Permalink
Minor: remove two anys from <CallScreen>
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn-Signal authored and josh-signal committed Oct 12, 2020
1 parent 9510fd1 commit 2637d90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions ts/components/CallScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>;

Expand Down
4 changes: 2 additions & 2 deletions ts/util/lint/exceptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
},
Expand Down

0 comments on commit 2637d90

Please sign in to comment.