Skip to content

Nested object parameter descriptions are not included in the output #2555

Closed
@xuhdev

Description

@xuhdev

Search terms

nested object

Expected Behavior

Descriptions of nested object types should be generated in the output.

Actual Behavior

Descriptions of nested object types are not generated in the output.

Steps to reproduce the bug

  1. Write the following file:
/**
 *
 * @param props - Component properties.
 * @param props.title - Title.
 * @param props.options - Options.
 * @param props.options.featureA - Turn on or off featureA.
 * @param props.options.featureB - Turn on or off featureB.
 */
function ComponentWithOptions({
  title,
  options,
}: {
  title: string;
  options: { featureA: boolean; featureB: boolean };
}) {}
  1. Invoke typedoc on the file.
  2. The output looks like the following:

image

Note the descriptions of featureA and featureB are completely missing.

Environment

  • Typedoc version: 0.25.13
  • TypeScript version: 5.4.5
  • Node.js version: 20.12.2
  • OS: Debian

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasier issue for first time contributorshelp wantedContributions are especially encouraged

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions