Open stepankuzmin opened 1 month ago
I am currently using pbf with Typescript and the implementation of JSDoc is a nice and elegant feature to get type hints understandable by Typescript compilers. Big plus for the compact and minimal implementation ! 👏
Is there any blockers to merge this and integrate it in the next release ?
Hey, @aberrier, thanks for trying this implementation! It is working for me as well. I've planned to add more tests for this, like the ones in the types/
folder, before marking this as ready for review.
Another approach for TypeScript support might also be considered in https://github.com/mapbox/pbf/pull/138. I'm not sure what the best option here, but implementing JSDoc support is less intrusive and easier to review, in my opinion.
Different approach to https://github.com/mapbox/pbf/pull/107. Adds
--jsdoc
option to generate type annotations.