Skip to content

Goto definition should go to index signature #23212

Closed
@ghost

Description

TypeScript Version: master

Code

interface I {
    [x: string]: boolean;
}
declare const i: I;
i.foo;

Expected behavior:

Goto definition on .foo takes me to the index signature.

Actual behavior:

Takes me nowhere. This can be tough if you have a complicated type and have no idea where the index signature came from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions