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:
@@ -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) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user