MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / allAsyncProps

Function allAsyncProps

packages/@stdlib/misc/src/promises.ts:46–50  ·  view source on GitHub ↗
(promises: {
  [K in keyof T]: PromiseLike<T[K]>;
})

Source from the content-addressed store, hash-verified

44}
45
46export async function allAsyncProps<T extends object>(promises: {
47 [K in keyof T]: PromiseLike<T[K]>;
48}): Promise<{ [K in keyof T]: T[K] }> {
49 return (await namedPromises(objKeys(promises), objValues(promises))) as any;
50}
51
52export function objectifyPromises<
53 K extends string[],

Callers 3

moveStep1Function · 0.90
_flushHGetBufferMethod · 0.90

Calls 3

objKeysFunction · 0.90
objValuesFunction · 0.90
namedPromisesFunction · 0.85

Tested by

no test coverage detected