fix(async-map/asyncMap): fix typing of first param

This commit is contained in:
Julien Fontanet
2021-03-16 11:32:39 +01:00
parent bdb59ea429
commit 7f33a62bb5

View File

@@ -12,7 +12,7 @@ const wrapCall = (fn, arg, thisArg) => {
* WARNING: Does not handle plain objects
*
* @template Item,This
* @param {Iterable<Item>} arrayLike
* @param {Iterable<Item>} iterable
* @param {(this: This, item: Item) => (Item | PromiseLike<Item>)} mapFn
* @param {This} [thisArg]
* @returns {Promise<Item[]>}