Comparing version 3.0.0 to 3.0.1
@@ -6,4 +6,4 @@ /** | ||
declare function batch<T>(source: Iterable<T>, size?: number): Generator<T[], void, undefined>; | ||
declare function batch<T>(source: AsyncIterable<T> | Iterable<T>, size?: number): AsyncGenerator<T[], void, undefined>; | ||
declare function batch<T>(source: Iterable<T> | AsyncIterable<T>, size?: number): AsyncGenerator<T[], void, undefined>; | ||
export default batch; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "it-batch", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Takes an async iterator that emits things and emits them as fixed size batches", | ||
@@ -5,0 +5,0 @@ "author": "Alex Potsides <alex@achingbrain.net>", |
@@ -10,4 +10,4 @@ function isAsyncIterable <T> (thing: any): thing is AsyncIterable<T> { | ||
function batch <T> (source: Iterable<T>, size?: number): Generator<T[], void, undefined> | ||
function batch <T> (source: AsyncIterable<T> | Iterable<T>, size?: number): AsyncGenerator<T[], void, undefined> | ||
function batch <T> (source: AsyncIterable<T> | Iterable<T>, size: number = 1): Generator<T[], void, undefined> | AsyncGenerator<T[], void, undefined> { | ||
function batch <T> (source: Iterable<T> | AsyncIterable<T>, size?: number): AsyncGenerator<T[], void, undefined> | ||
function batch <T> (source: Iterable<T> | AsyncIterable<T>, size: number = 1): Generator<T[], void, undefined> | AsyncGenerator<T[], void, undefined> { | ||
size = Number(size) | ||
@@ -14,0 +14,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package