Skip to content

@typedef is only displayed as three dots #2454

@kungfooman

Description

@kungfooman

Search terms

@typedef, three points only, missing documentation for typedef tag

Expected Behavior

I expect that all properties of the given @typedef are listed.

Alternatively a link to a new file explaining this typedef.

Or simply both - make it an option whether a typedef is inlined or creating a new typedef info file.

Actual Behavior

A full @typedef definition is only producing three dots:

image

Steps to reproduce the bug

I use this code:

/**
 * Animal counting object for a zoo.
 *
 * @typedef {object} AnimalCount
 * @property {number} elephant - The number of elephants.
 * @property {number} dolphins - The number of dolphins.
 */

class Location {
    /** @type {AnimalCount} */
    zoo = { elephant: 1, dolphins: 2 };
}

Environment

  • Typedoc version: npm install typedoc@^0.25.4 (same issue on 0.25.1)
  • TypeScript version: ^5.2.2
  • Node.js version: v18.12.1
  • OS: Linux

Full config and repo: https://github.com/playcanvas/engine/blob/main/package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    no bugThis is expected behavior

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions