UNPKG

e2ed

Version:

E2E testing framework over Playwright

11 lines (10 loc) 405 B
type PromiseObject = Record<string, Promise<unknown>>; type Return<Value extends PromiseObject> = Promise<{ [Key in keyof Value]: Awaited<Value[Key]>; }>; /** * Waits for all object properties are resolved, * and returns an object with those properties and their values. */ export declare const waitForAllProperties: <Value extends PromiseObject>(promiseObject: Value) => Return<Value>; export {};