You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a website that automatically builds TypeDoc API documentation from NPM packages, similiar to Cargo's crates.io? I think crates.io uses Docker.
The text was updated successfully, but these errors were encountered:
There is not, unfortunately doing this comes with a whole host of problems that rust (and to a lesser extent, deno) don't have. I'm unlikely to ever build something like this.
Most packages don't ship with types... but the compiler in JS mode can infer some types from them that ought to show up.
Packages without types might have an @types package that needs to be paired with the version of the package, and it's not always clear how to do that for anything but the latest version. (And there might be more type dependencies declared with * versions, since that what definitely typed uses), could be mitigated by only supporting the latest version..
What gets used as the entry point or entry points? Support for package exports map #1937 will enable trying to figure this out from package.json, but we don't have that yet. It's tricky to map from JS output files back to the TS files, even trickier when considering libraries that bundle their output so there isn't a 1-1 mapping.
If building from declaration files, we can't link to source code for the declaration. Even if declaration source maps are published, they don't include all exports for some reason, so can't be relied on.
ESM/CJS is terrible, and a service like this should differentiate between them.
A service like this should really allow interconnected docs. This is more possible since 0.24, but it's still not something that'll come for free. I think this one is relatively easy to fix via a custom link resolution plugin.
... probably way more I haven't even thought of, and an unlikely to in the middle of the night.
Search terms
automatic
Question
Is there a website that automatically builds TypeDoc API documentation from NPM packages, similiar to Cargo's crates.io? I think crates.io uses Docker.
The text was updated successfully, but these errors were encountered: