Closed
Description
The argument types and expected returns could be expressed in a typescript declarations .d.ts
file, which would enable editors like VSCode to provide some help with using this function.
The big restriction, re not supporting synchronous functions, might be hard to define in typescript. Though I write in TypeScript, the API to this is complex enough that writing the definitions file for this project may be over my head. But the expressive goodness of this should bubble up to packages like Gulp where mistakes over sync/async are more common.