Skip to content

Commit

Permalink
async-each:improve type
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp committed Jan 10, 2025
1 parent ed0bf9d commit 95b97f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions @vates/async-each/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class AggregateError extends Error {

/**
* @template Item
* @param {Iterable<Item>} iterable
* @param {(item: Item, index: number, iterable: Iterable<Item>) => Promise<void>} iteratee
* @param {Iterable<Item>|AsyncIterable<Item>} iterable
* @param {(item: Item, index: number, iterable: Iterable<Item>|AsyncIterable<Item>) => Promise<void>} iteratee
* @returns {Promise<void>}
*/
exports.asyncEach = function asyncEach(iterable, iteratee, { concurrency = 10, signal, stopOnError = true } = {}) {
Expand Down

0 comments on commit 95b97f6

Please sign in to comment.