wip custom reference page

This commit is contained in:
MapleLeaf
2022-01-14 01:01:28 -06:00
parent 05bda71ad6
commit 723d663d3c
9 changed files with 276 additions and 93 deletions

View File

@@ -0,0 +1,13 @@
export async function promiseAllObject<Input extends object>(
input: Input,
): Promise<{
[K in keyof Input]: Awaited<Input[K]>
}> {
const result: any = {}
await Promise.all(
Object.entries(input).map(async ([key, promise]) => {
result[key] = await promise
}),
)
return result
}