Remove remnants of the every() method

This commit is contained in:
Sami Turcotte 2018-11-28 23:51:37 -05:00
parent 3539b5f5df
commit 41c9ce7dca
2 changed files with 1 additions and 15 deletions

View File

@ -146,18 +146,4 @@ export declare function once<T>(
emitter: NodeJS.EventEmitter, emitter: NodeJS.EventEmitter,
event: string, event: string,
): Promise<T>; ): Promise<T>;
/**
* Eagerly resolve to false as soon as any of the promises has resolved to a value for which the
* predicate is falsey, or resolve to true when all of the promises have resolved to a value for which
* the predicate is thruthy, or rejects with the reason of the first promise rejection
*
* @param promises Promises whose resolved values will be tested by the predicate
* @param predicate Predicate to apply
* @returns Promise indicating whether the predicate holds for all resolved promise values
*/
export declare function every<T>(
promises: Array<Promise<T>>,
predicate: (value: T) => boolean,
): Promise<boolean>;
``` ```

View File

@ -1,7 +1,7 @@
import test from "ava"; import test from "ava";
import { expect } from "chai"; import { expect } from "chai";
import { EventEmitter } from "events"; import { EventEmitter } from "events";
import { once, sleep, delay, every } from "./utils"; import { once, sleep, delay } from "./utils";
const TimingErrorMarginMs = 50; const TimingErrorMarginMs = 50;