Add correct typing

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-02-02 07:59:01 -05:00
1 parent 37d3e8bd7c
commit 42227d323d
1 file changed
+3 -1
+3 -1
View File
@@ -156,7 +156,7 @@ try {
generateImages(checkingForUpdatesImage, size, "trayIconCheckingForUpdates"),
];
let timeout;
let timeout: NodeJS.Timeout | undefined;
await Promise.race([
Promise.all(imageGenerators),
@@ -165,6 +165,8 @@ try {
}, tenMinutes)),
]);
clearTimeout(timeout);
console.log("Generated all images");
} catch (error) {
console.error(error);