This is a convenience for those using the Mapper type
import { pMapSkip } from "p-map"
/** @type {Mapper<any, string>} */
async function mapper(...) {
// Type 'pMapSkip' is not assignable to type 'string'
return pMapSkip
}
You'd have to add | typeof pMapSkip this to make this work currently:
This is a convenience for those using the
Mapper
typeYou'd have to add
| typeof pMapSkip
this to make this work currently: