New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate documentation based on type definition file #1430
Comments
Hey, I didn't know HexEd.it used TypeDoc! Really useful tool :) What does the output of this run look like? I copied your declaration file into a project and ran typedoc on it, which gave me this for the navigation: Clicking on "hexedit" gives the expected output. 0.20.2 (soon, few more issues to check) adds some extra detection for modules of this style, which should give better results, omitting the "hexedit" namespace and including the types directly. |
Sorry for misleading you into the wrong direction. I played around with my original type definitions, and figured out that the example I've posted above indeed works, and my problem is a bit more complex. I don't even know if it's my fault, or if it's a TypeDoc issue or an TypeScript issue. The source of my problem was that I have 2 type definition files, one for TS3.3+ and one for TS4.0+. I don't know why it worked till TypeDoc 0.19, but now I had to add this to my
If you are interested, I've created a Git repo now, with a minimal configuration to reproduce this issue: The only question is, why doesn't TypeDoc return an error message here, if it's not able to process the file correctly? |
It looks like a fix included in 0.20.3 has fixed it - my logic for getting exports in global files was faulty. I upgraded to 0.20.4, and the output includes all of the types. I am still somewhat surprised this works, needing to use |
As far as I can tell this has been resolved, please reopen if I closed prematurely |
Search terms
type definition
Expected Behavior / Actual Behavior
In version 0.19.2 I was able to use a *.d.ts file (containing a
declare module '...' { ... }
) as source of the documentation.After updating to version 0.20.1 the generated documentation, based on the same file is empty.
Is there a new way to get a documentation generated based on type definition files, instead of the actual source code (which works, but my type definition file contains a lot more details).
Steps to reproduce the bug
My previous TypeDoc configuration (till 0.19.2):
My new TypeDoc configuration:
The type definition file:
My tsconfig.json
Environment
The text was updated successfully, but these errors were encountered: