Skip to content

Documentation for function variables was not inferred #1523

Closed
@JasonHK

Description

@JasonHK

Search terms

const, function

Expected Behavior

Documentation for function variables should be inferred, i.e. the description, parameter descriptions etc. should be inherited.

interface Callable
{
    /**
     * Convert a number to a string.
     * 
     * @param payload A number.
     */
    (payload: number): string;

    /**
     * Convert a string to a number.
     * 
     * @param payload A string.
     */
    (payload: string): number;
}

export declare const callable: Callable;

Actual Behavior

2021-03-02_00004
2021-03-02_00003

Steps to reproduce the bug

Please refer to the code snippet above.

Environment

  • Typedoc version: 0.20.28
  • TypeScript version: 4.1.5
  • Node.js version: 14.15.5
  • OS: Kubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions