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:
parent
f2aa0ca65f
commit
59f1a2d022
|
@ -28,7 +28,7 @@ export class LoginApprovalComponent implements OnInit, OnDestroy {
|
||||||
email: string;
|
email: string;
|
||||||
fingerprintPhrase: string;
|
fingerprintPhrase: string;
|
||||||
authRequestResponse: AuthRequestResponse;
|
authRequestResponse: AuthRequestResponse;
|
||||||
interval: NodeJS.Timer;
|
interval: NodeJS.Timeout;
|
||||||
requestTimeText: string;
|
requestTimeText: string;
|
||||||
dismissModal: boolean;
|
dismissModal: boolean;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { MenuUpdateRequest } from "./menu/menu.updater";
|
||||||
const SyncInterval = 5 * 60 * 1000; // 5 minutes
|
const SyncInterval = 5 * 60 * 1000; // 5 minutes
|
||||||
|
|
||||||
export class MessagingMain {
|
export class MessagingMain {
|
||||||
private syncTimeout: NodeJS.Timer;
|
private syncTimeout: NodeJS.Timeout;
|
||||||
|
|
||||||
constructor(private main: Main, private stateService: StateService) {}
|
constructor(private main: Main, private stateService: StateService) {}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ export class WindowMain {
|
||||||
isQuitting = false;
|
isQuitting = false;
|
||||||
isClosing = false;
|
isClosing = false;
|
||||||
|
|
||||||
private windowStateChangeTimer: NodeJS.Timer;
|
private windowStateChangeTimer: NodeJS.Timeout;
|
||||||
private windowStates: { [key: string]: WindowState } = {};
|
private windowStates: { [key: string]: WindowState } = {};
|
||||||
private enableAlwaysOnTop = false;
|
private enableAlwaysOnTop = false;
|
||||||
private session: Electron.Session;
|
private session: Electron.Session;
|
||||||
|
|
Loading…
Reference in New Issue