Closed noamokman closed 8 months ago
Hey, Changed the shared input to include a promise as this is the sample in the basic usage. I also fixed pMapIterable to await on values as it's type allows Iterator<Element | Promise<Element>>. The tests cover this fix.
pMapIterable
Iterator<Element | Promise<Element>>
Related to https://github.com/sindresorhus/p-filter/pull/8
Thanks!
// @Richienb
Seems fine but would appreciate some type tests for all four (?) types of input
input
Sure I'll add it now
@Richienb please take another look 🙏🏻
Hey, Changed the shared input to include a promise as this is the sample in the basic usage. I also fixed
pMapIterable
to await on values as it's type allowsIterator<Element | Promise<Element>>
. The tests cover this fix.Related to https://github.com/sindresorhus/p-filter/pull/8
Thanks!