From cfc852b428fb0c9ddf3bfbaad26c276b197779f0 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Mon, 3 Oct 2022 02:06:53 -0700 Subject: [PATCH] fix: accepts iterable also (#24) Passed directly to `it-batch` which accepts `Iterable` also: https://github.com/achingbrain/it/blob/master/packages/it-batch/index.js#L8 --- packages/it-parallel-batch/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/it-parallel-batch/index.js b/packages/it-parallel-batch/index.js index b60dcd56..dade63cf 100644 --- a/packages/it-parallel-batch/index.js +++ b/packages/it-parallel-batch/index.js @@ -17,7 +17,7 @@ const batch = require('it-batch') * in the same order as the input * * @template T - * @param {AsyncIterable<() => Promise>} source + * @param {AsyncIterable<() => Promise>|Iterable<() => Promise>} source * @param {number} [size=1] * @returns {AsyncIterable} */