Improve type safety

This commit is contained in:
2023-04-22 09:28:42 +02:00
parent b62936ed54
commit 1cd9d83910
6 changed files with 37 additions and 13 deletions

View File

@ -25,7 +25,7 @@
}
const refreshInterval = parseInt(PUBLIC_REFRESH_INTERVAL);
let interval: NodeJS.Timer | null = null;
let interval: ReturnType<typeof setTimeout> | null = null;
let moreOlderPostsAvailable = true;
let loadingOlderPosts = false;