-
-
Notifications
You must be signed in to change notification settings - Fork 743
Description
Search terms
Doc comment
Description
I'm using the excludeNotDocumented
option to prevent symbols w/o documentation to appear in the docs.
Sometimes I need to document in the inline object type, for example for function arguments:
elementPointIsReachable (
target : ActionTarget,
options : { offset : ActionTargetOffset, allowChildren : boolean } | ActionTargetOffset,
description? : string
)
The type of options
argument appears as {}
in the docs (this is expected, because of the excludeNotDocumented
):
Now, to include them in the docs, I'm trying to provide a documentation for the properties:
elementPointIsReachable (
target : ActionTarget, options : { /** include */ offset : ActionTargetOffset, /** include */allowChildren : boolean } | ActionTargetOffset, description? : string
)
The result, however, is the same:
To make it work, the doc comment needs to reside on the separate line, above the symbol:
elementPointIsReachable (
target : ActionTarget, options : {
/** include */
offset : ActionTargetOffset,
/** include */
allowChildren : boolean
} | ActionTargetOffset, description? : string
)
Expected
I'd expect, that the exact location of the doc comment should be not significant. Under "doc comment" I mean a comment with leading double star: /** */
. The doc comment should just precede the symbol it documents, whether on the same line, or on the next line.
Environment
- Typedoc version: 0.22.6
- TypeScript version: 4.4.0
- Node.js version: 12.22
- OS: Ubuntu 18.04