From 94a8b2d18bf10cca67cf4c308253f642bbb2b160 Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Sat, 1 Apr 2017 15:05:52 -0700 Subject: use the AsyncFunction type in all docs :sweat: --- lib/transform.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/transform.js') diff --git a/lib/transform.js b/lib/transform.js index d3c1d6a..ef254a1 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -18,11 +18,8 @@ import wrapAsync from './internal/wrapAsync'; * @param {Array|Iterable|Object} coll - A collection to iterate over. * @param {*} [accumulator] - The initial state of the transform. If omitted, * it will default to an empty Object or Array, depending on the type of `coll` - * @param {Function} iteratee - A function applied to each item in the - * collection that potentially modifies the accumulator. The `iteratee` is - * passed a `callback(err)` which accepts an optional error as its first - * argument. If an error is passed to the callback, the transform is stopped - * and the main `callback` is immediately called with the error. + * @param {AsyncFunction} iteratee - A function applied to each item in the + * collection that potentially modifies the accumulator. * Invoked with (accumulator, item, key, callback). * @param {Function} [callback] - A callback which is called after all the * `iteratee` functions have finished. Result is the transformed accumulator. -- cgit v1.2.1