awaitable-array
Version:
Create an array that can be awaited for a specific length
10 lines (8 loc) • 300 B
TypeScript
/**
* These are the types for the Awaitable Array
*/
declare class AwaitableArray extends Array {
untilLength(length: number, padding?: number, timeout?: number): Promise<void>;
untilCondition(condition: () => {}, padding?: number, timeout?: number): Promise<void>;
}
export = AwaitableArray;