Fix bad typings left over from the migration

This commit is contained in:
Hornwitser committed 2023-11-19 04:50:07 +01:00
1 parent 7314dc99c8
commit 80e1904175
22 files changed
+93 -117

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ export async function timeout<T>(promise: Promise<T>, time: number, timeoutResul
try {
return await Promise.race([
promise,
new Promise(resolve => {
new Promise<T>(resolve => {
timer = setTimeout(() => resolve(timeoutResult), time);
}),
]);