Referenced function types inserts complete function documentation in parameter list #2283
Labels
bug
Functionality does not match expectation
design-limitation
help wanted
Contributions are especially encouraged
Search terms
Function arguments.
Expected Behavior
I expect a functions parameters to be documented using just the text included in
@param
.Actual Behavior
When a function parameter is
typeof aFunction
or has a default function value, the complete documentation if the referenced function is included in the parameter description.Steps to reproduce the bug
refbug.ts
:tsconfig.json
:package.json
:Run with
rm -rf docs && pnpm typedoc --entryPoints refbug.ts --tsconfig tsconifg.json
The generated documentation for the
refbug
function now includes the complete docs forfunc
andnsFunc
(but notns
!).When using the
typedoc-plugin-markdown
, it's even worse since the actual@param
documentation is completely missing.rm -rf docs && pnpm typedoc --entryPoints refbug.ts --tsconfig tsconifg.json --plugin typedoc-plugin-markdown
Environment
The text was updated successfully, but these errors were encountered: