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
I thought only getCurrencyRate would be generated at doc files since I'd set excludeNotExported to be true. However, the result was shown as below. The other non exported variables are not removed.
Actual Behavior
Steps to reproduce the bug
Environment
Typedoc version:0.16.9
Node.js version:12.14.0
OS:mac
The text was updated successfully, but these errors were encountered:
Also --excludeNotExported works well with --mode modules, but it can affect your classes (change them to external modules and wrap them in double quotes)
njh7799
changed the title
Not exported variables are not removed
Unexported variables are not removed
Jan 31, 2020
File mode tells TypeDoc that your source files should be treated as global script files, all declarations in them are implicitly exported.
You might be interested in the upcoming library mode, #1184, where TypeDoc builds documentation for only those declarations exported from the input file. You can try it out by installing typedoc@next and changing your typedoc.json file to be:
{"name": "Orion-facebook","inputFiles": ["./src/index.ts"],// Note that this specifies a single file, since otherwise all files are treated as entry points."mode": "library","out": "docs","excludeNotExported": true,// Doesn't do anything in library mode"excludePrivate": true}
Expected Behavior
Not exported variables are not removed
Here's my code.
I thought only
getCurrencyRate
would be generated at doc files since I'd set excludeNotExported to be true. However, the result was shown as below. The other non exported variables are not removed.Actual Behavior
Steps to reproduce the bug
Environment
The text was updated successfully, but these errors were encountered: