Switch NodeJS.Timer to NodeJS.Timeout (#6916)

The latest version of types/node had some breaking changes related to Timer and Timeout, #6739. It turns out that we incorrectly used the type Timer when Timeout was expected in a few places. This PR resolves them, in an effort to unblock the @types/node upgrade.
This commit is contained in:
Oscar Hinton 2023-11-23 13:10:23 +01:00 committed by GitHub
parent f2aa0ca65f
commit 59f1a2d022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ export class LoginApprovalComponent implements OnInit, OnDestroy {
email: string;
fingerprintPhrase: string;
authRequestResponse: AuthRequestResponse;
interval: NodeJS.Timer;
interval: NodeJS.Timeout;
requestTimeText: string;
dismissModal: boolean;

View File

@ -12,7 +12,7 @@ import { MenuUpdateRequest } from "./menu/menu.updater";
const SyncInterval = 5 * 60 * 1000; // 5 minutes
export class MessagingMain {
private syncTimeout: NodeJS.Timer;
private syncTimeout: NodeJS.Timeout;
constructor(private main: Main, private stateService: StateService) {}

View File

@ -26,7 +26,7 @@ export class WindowMain {
isQuitting = false;
isClosing = false;
private windowStateChangeTimer: NodeJS.Timer;
private windowStateChangeTimer: NodeJS.Timeout;
private windowStates: { [key: string]: WindowState } = {};
private enableAlwaysOnTop = false;
private session: Electron.Session;