Skip to content

JSDoc documentation for interface members does not show in tooltips for properties on anonymous objects that are typed to those interfaces #18358

@liviuu

Description

@liviuu

TypeScript Version: 2.5.2

Code

interface IMyInterface
{
    /**
     * my property a
     */
    a: string;
}

let o: IMyInterface = { a: "xyz" }; 

Expected behavior:

When hovering over the property a in the anonymous object, I would expect to see the documentation
for interface IMyInterface property a.

Actual behavior:
tooltip shows only "(property) a : string"

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions