1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add correct typing

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-02-02 07:59:01 -05:00
parent 37d3e8bd7c
commit 42227d323d

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);