Skip to content

"Delegate" type aliases render summary in wrong location #2372

Closed
@jonchardy

Description

@jonchardy

Search terms

Type Alias
Delegate
Handler

Expected Behavior

The following type declaration should render with its comment just below the signature.

/**
 * The signature for a function acting as an event handler.
 */
export type EventHandler = ((e: Event) => void);

It should appear like this (without the | null, added to show expected output).

image

Actual Behavior

Typedoc renders the description as part of the type declaration.

image

Steps to reproduce the bug

Repro here:
TypeStrong/typedoc-repros#30

Environment

  • Typedoc version: 0.24.8
  • TypeScript version: 5.1.6
  • Node.js version: 18.13.0
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions