Closed tamuratak closed 8 months ago
Generate types from JSDoc comments with TypeScript compiler. Close #334.
TypeScript compiler can generate .d.ts files from JavaScript files. See
.d.ts
To make it work, we need minor modifications on src/index.js and types.js.
src/index.js
types.js
Run npm run types to generate types.
npm run types
We have to tweak ./src/Promise to make the generated types compatible with @types/workerpool. Please check whether the change is accepetable.
./src/Promise
@types/workerpool
Published now as v9.0.0. Thank again Takashi!
v9.0.0
Generate types from JSDoc comments with TypeScript compiler. Close #334.
TypeScript compiler can generate
.d.ts
files from JavaScript files. SeeTo make it work, we need minor modifications on
src/index.js
andtypes.js
.Run
npm run types
to generate types.