Skip to content

TypeDoc displays a superfluous type on number constants #2717

Closed
@Zamiell

Description

@Zamiell

Consider the following code:

const SECOND_IN_MILLISECONDS = 1000;

TypeDoc will generate a page with the following:

image

Here, the type of "1000" is superfluous/confusing/noisy/distracting. Thus, I propose that when TypeDoc determines that the type is exactly the same thing as the value, then it should omit printing out the type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasier issue for first time contributors

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions