mergeiterator
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -0,1 +1,5 @@ | ||
## [1.2.5](https://github.com/vadzim/mergeiterator/compare/v1.2.4...v1.2.5) (2019-05-23) | ||
## [1.2.4](https://github.com/vadzim/mergeiterator/compare/v1.2.3...v1.2.4) (2019-05-17) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "mergeiterator", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "merges async iterators", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -60,4 +60,4 @@ # mergeiterator | ||
- `sequences` **AnyIterable<AnyIterable<([Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<T> | T)>, ReturnT>** | ||
- `sequences` **AnyIterable<AnyIterable<T>, ReturnT>** | ||
Returns **AsyncGenerator<T, ReturnT, void>** |
@@ -5,3 +5,3 @@ // @flow | ||
type AnyIterable<T, ReturnT = *> = $AsyncIterable<T, ReturnT, void> | $Iterable<T, ReturnT, void> | ||
type AnyIterable<T, ReturnT = *> = $AsyncIterable<Promise<T> | T, ReturnT, void> | $Iterable<Promise<T> | T, ReturnT, void> | ||
@@ -11,3 +11,3 @@ /** | ||
*/ | ||
export async function* merge<T, ReturnT>(sequences: AnyIterable<AnyIterable<Promise<T> | T>, ReturnT>): AsyncGenerator<T, ReturnT, void> { | ||
export async function* merge<T, ReturnT>(sequences: AnyIterable<AnyIterable<T>, ReturnT>): AsyncGenerator<T, ReturnT, void> { | ||
const rootIterator = getIterator(sequences) | ||
@@ -14,0 +14,0 @@ const readers = [readRootIterator] |
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
21528