1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

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
3 changed files with 3 additions and 3 deletions

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) {}