From 41c9ce7dca3c2c1ade672ff3e4ef8ca010590e3b Mon Sep 17 00:00:00 2001 From: Sami Turcotte Date: Wed, 28 Nov 2018 23:51:37 -0500 Subject: [PATCH] Remove remnants of the every() method --- README.md | 14 -------------- src/utils.spec.ts | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/README.md b/README.md index 1d72496..3e6552b 100644 --- a/README.md +++ b/README.md @@ -146,18 +146,4 @@ export declare function once( emitter: NodeJS.EventEmitter, event: string, ): Promise; - -/** - * 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( - promises: Array>, - predicate: (value: T) => boolean, -): Promise; ``` diff --git a/src/utils.spec.ts b/src/utils.spec.ts index 8a89117..e7607eb 100644 --- a/src/utils.spec.ts +++ b/src/utils.spec.ts @@ -1,7 +1,7 @@ import test from "ava"; import { expect } from "chai"; import { EventEmitter } from "events"; -import { once, sleep, delay, every } from "./utils"; +import { once, sleep, delay } from "./utils"; const TimingErrorMarginMs = 50;