josdejong / workerpool

Offload tasks to a pool of workers on node.js and in the browser
Apache License 2.0
2.04k stars 148 forks source link

Generate types from JSDoc comments with TypeScript compiler. #415

Closed tamuratak closed 8 months ago

tamuratak commented 8 months ago

Generate types from JSDoc comments with TypeScript compiler. Close #334.

TypeScript compiler can generate .d.ts files from JavaScript files. See

To make it work, we need minor modifications on src/index.js and types.js.

Run npm run types to generate types.

tamuratak commented 8 months ago

We have to tweak ./src/Promise to make the generated types compatible with @types/workerpool. Please check whether the change is accepetable.

josdejong commented 8 months ago

Published now as v9.0.0. Thank again Takashi!