Use return type deduction for timers

Fix updates to Node.js timers types breaking the TypeScript build by
deducing the correct type from the return type of the
setTimeout/setInterval functions.
This commit is contained in:
Hornwitser committed 2023-08-15 18:01:27 +02:00
1 parent e51a644788
commit 9c9adf7c8e
6 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ export default class Controller {
logDirectory: string = "";
clusterLogIndex: lib.LogIndex | null = null;
clusterLogBuildInterval: NodeJS.Timer | null = null;
clusterLogBuildInterval: ReturnType<typeof setInterval> | null = null;
constructor(
clusterLogger: winston.Logger,