From d36fd3b0621c917cf5a7f5c1c6484cdd3003599e Mon Sep 17 00:00:00 2001 From: mfrantz Date: Wed, 16 Sep 2015 17:08:10 -0700 Subject: [PATCH] bluebird: Fix typo in 'each' comment copied from wiki This typo has since been fixed in the original document: https://github.com/petkaantonov/bluebird/blob/master/API.md#eachfunction-iterator---promise --- bluebird/bluebird.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bluebird/bluebird.d.ts b/bluebird/bluebird.d.ts index dcf1a57a0..350761fdd 100644 --- a/bluebird/bluebird.d.ts +++ b/bluebird/bluebird.d.ts @@ -614,7 +614,7 @@ declare class Promise implements Promise.Thenable, Promise.Inspection { static filter(values: R[], filterer: (item: R, index: number, arrayLength: number) => boolean, option?: Promise.ConcurrencyOption): Promise; /** - * Iterate over an array, or a promise of an array, which contains promises (or a mix of promises and values) with the given iterator function with the signature (item, index, value) where item is the resolved value of a respective promise in the input array. Iteration happens in serially. If any promise in the input array is rejected the returned promise is rejected as well. + * Iterate over an array, or a promise of an array, which contains promises (or a mix of promises and values) with the given iterator function with the signature (item, index, value) where item is the resolved value of a respective promise in the input array. Iteration happens serially. If any promise in the input array is rejected the returned promise is rejected as well. * * Resolves to the original array unmodified, this method is meant to be used for side effects. If the iterator function returns a promise or a thenable, the result for the promise is awaited for before continuing with next iteration. */