pastelsky / tsdocs

Browse type documentation for JS libraries
https://tsdocs.dev
MIT License
1.12k stars 25 forks source link

Support for `exports` #23

Open yonilerner opened 10 months ago

yonilerner commented 10 months ago

https://tsdocs.dev/search/docs/discord-api-types fails with a TypeDefinitionResolveError, probably because the package doesn't actually expose top-level exports. It does however specify exports in its package.json. It would be cool if eg. https://tsdocs.dev/search/docs/discord-api-types/v10 worked

dominikzogg commented 10 months ago

Same here: https://github.com/chubbyts/chubbyts-framework/blob/master/package.json#L52

NullVoxPopuli commented 7 months ago

Same here: https://tsdocs.dev/docs/signal-utils/0.12.2/index.html -- only shows the index module, but there are many more.

I've written a parser for exports before if you want to use it:

https://github.com/universal-ember/kolay/blob/main/src/plugins/helpers.js#L29

Example usage here: https://github.com/universal-ember/kolay/blob/main/src/plugins/api-docs/typedoc.js#L29