jsr-io / jsr

The open-source package registry for modern JavaScript and TypeScript
https://jsr.io
MIT License
2.54k stars 119 forks source link

Supporting TSDoc in `deno doc` and dts emit #494

Open lucacasonato opened 6 months ago

lucacasonato commented 6 months ago

Right now we only support TS type annotations in .ts files for both deno doc and fast check emit. We do not understand type annotations in TSDoc comments in .js files as of yet. We could do this, but it would require significant effort:

hrgdavor commented 6 months ago

This is a blocker for me. I hope there more others like me regarding this issue, so there is incentive to tackle this.

I want to be typescript friendly, but refuse to to use it directly. It is my personal preference.

theengineear commented 1 month ago

^^ Having similar issues. I have a package where I define all types via JSDoc in .js files and then emit .d.ts files. I believe that I should be able to do this in such a way that shouldn’t flag my package as having slow types. I’m struggling with understanding whether I’ve somehow done something wrong or if I’m being incorrectly flagged as having “slow types”.

Thanks!

hrgdavor commented 3 weeks ago

Trying not to spam. I am interested in publishing some libraries and using jsr to improve docs and types quelity, but this is show stopper for me. I do see some progress in netflix/x-element that looks promising for this ... looking fwd to more progress.