question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The @internal doc flag recognised by tsc should be an alias for @hidden

See original GitHub issue

The @internal flag is used by tsc --stripInternal to exclude a particular property from a generated declaration file. If you’re producing a documented library with public methods for consumption this is basically the same as the @hidden flag you’ll want to use in your typedoc.

It would be great if I could just use @internal and have it work on both my .d.ts and typedoc output.

I realise PRs are needed to make progress on typedoc at the moment but I thought I’d put this up as an issue in case anybody has any better ideas!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Gerrit0commented, Oct 12, 2019

TypeDoc doesn’t produce declaration files, so I don’t think it’s a TypeDoc issue.

The TypeScript compiler options page doesn’t list all options, nor does tsc --help. If you want to see all options (which does list --stripInternal) you have to run tsc --help --all

1reaction
christopherthielencommented, Oct 27, 2017

I wrote a plugin for my project which allows me to mark specific code as @internal or @external.

https://github.com/christopherthielen/typedoc-plugin-internal-external

The plugin also allows you to specify aliases for each annotation.

https://github.com/christopherthielen/typedoc-plugin-internal-external#annotation-aliases

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bountysource
The @internal doc flag recognised by tsc should be an alias for @hidden.
Read more >
Unable to import svg files in typescript - Stack Overflow
js file I'm able to import it without any issues with exact the same import statement. I suppose it has something to do...
Read more >
Follow-up Audit of the Terrorist Screening Center - DOJ OIG
Additionally, the TSC's redress reviews have identified that the database contains records for individuals that should not be watchlisted and that some ...
Read more >
Options - TypeDoc
All command line arguments that are passed in without a flag will be parsed as input files. Any options passed on the command...
Read more >
concurrently - npm
Note The concurrently command is now also available under the shorthand alias conc . The tool is written in Node.js, but you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found