Skip to content

Nested parameter descriptions #497

Closed
@jonchardy

Description

@jonchardy

TypeDoc doesn't seem to have a way to provide comments for nested parameters. Consider the following TypeScript method:

/**
 * Test method with object param
 * @param {Object} options
 */
public foo(options: { first: string, second: number, third: (a: number) => number }) {

}

TypeDoc generates something like this:
image

Ideally there would be a way to provide descriptions for all parts of the parameter (first, second, third, a, returned number) using some sort of syntax within the comment. As it stands, I suppose it's possible to provide some sort of long description for the options param which describes each component of it, but then it becomes messy having the descriptions separated from the type information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions