Cache meta
This commit is contained in:
parent
8a55bdd89d
commit
5aa5896b22
34 changed files with 62 additions and 55 deletions
|
@ -10,7 +10,7 @@ export async function awaitAll<T>(obj: T): Promise<AwaitAll<T>> {
|
|||
const values = Object.values(obj);
|
||||
|
||||
const resolvedValues = await Promise.all(values.map(value =>
|
||||
(value || !value.constructor || value.constructor.name !== 'Object')
|
||||
(!value || !value.constructor || value.constructor.name !== 'Object')
|
||||
? value
|
||||
: awaitAll(value)
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue