Skip to content

FR: JSDocs should be inherited from an implemented interface/base class #19524

@Jack-Works

Description

@Jack-Works

TypeScript Version: 2.6

Code

interface Human {
    /** Name of human */
    name: string
}
class OhHuman implements Human {
    name = 'Jack'
}
(new OhHuman).name

Expected behavior:

(property) OhHuman.name: string

Name of human

Actual behavior:

(Property) OhHuman.name: string

Also See:
#12966 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions