Comparing version 3.0.0 to 3.0.1
@@ -7,4 +7,4 @@ /** | ||
declare function map<I, O>(source: Iterable<I>, func: (val: I) => O): Generator<O, void, undefined>; | ||
declare function map<I, O>(source: AsyncIterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined>; | ||
declare function map<I, O>(source: AsyncIterable<I> | Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined>; | ||
export default map; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "it-map", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Maps the values yielded by an async iterator", | ||
@@ -5,0 +5,0 @@ "author": "Alex Potsides <alex@achingbrain.net>", |
@@ -13,3 +13,3 @@ import peek from 'it-peekable' | ||
function map <I, O> (source: Iterable<I>, func: (val: I) => O): Generator<O, void, undefined> | ||
function map <I, O> (source: AsyncIterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined> | ||
function map <I, O> (source: AsyncIterable<I> | Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined> | ||
function map <I, O> (source: AsyncIterable<I> | Iterable<I>, func: (val: I) => O | Promise<O>): AsyncGenerator<O, void, undefined> | Generator<O, void, undefined> { | ||
@@ -16,0 +16,0 @@ if (isAsyncIterable(source)) { |
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
11681