Samual 🦢
Samual 🦢2mo ago

how do I use `@ts-self-types` without `.d.ts` files appearing in docs?

I have this package here: https://jsr.io/@samual/duration/0.0.1-85380af Which has been uploaded as pairs of .js and .d.ts where the .js files have // @ts-self-types="…" comments at the top. And to make sure the Deno type checker can find the .d.ts files, they are all in the jsr.json's "exports" array. This has the side affect of making the .d.ts files show up in the docs however which you can see here: https://jsr.io/@samual/duration@0.0.1-85380af/doc They also show up in the autocompletes when importing the package (I have attached an image), but that is less of a problem than cluttered docs. Ideally, I would like to find a way of making the Deno type checker be able to find the .d.ts files without having to put them in the jsr.json's "exports". I know you might think this would be simpler if I instead just uploaded .ts files but that isn't an option for me, this isn't my first post here.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?