mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
[p-map-series] widen type to PromiseLike (#18831)
This commit is contained in:
committed by
Mohamed Hegazy
parent
879a32c388
commit
60bd9d31f0
2
types/p-map-series/index.d.ts
vendored
2
types/p-map-series/index.d.ts
vendored
@@ -6,4 +6,4 @@
|
||||
|
||||
export = pMapSeries;
|
||||
|
||||
declare function pMapSeries<T, U = T>(input: Iterable<Promise<T> | T>, mapper: (element: T, index: number) => Promise<U> | U): Promise<U[]>;
|
||||
declare function pMapSeries<T, U = T>(input: Iterable<PromiseLike<T> | T>, mapper: (element: T, index: number) => PromiseLike<U> | U): Promise<U[]>;
|
||||
|
||||
Reference in New Issue
Block a user