fix(core): update

This commit is contained in:
Philipp Kunz 2021-04-23 18:04:08 +00:00
parent 84a8d8431c
commit 255d6415a5

View File

@ -94,7 +94,7 @@ export const timeoutWrap = <T = any>(promiseArg: Promise<T>, timeoutInMs: number
}; };
export const getFirstTrueOrFalse = async (promisesArg: Promise<boolean>[]) => { export const getFirstTrueOrFalse = async (promisesArg: Promise<boolean>[]) => {
const done = defer(); const done = defer<boolean>();
for (const promiseArg of promisesArg) { for (const promiseArg of promisesArg) {
promiseArg.then((resultArg) => { promiseArg.then((resultArg) => {
if (resultArg === true) { if (resultArg === true) {