Skip to content

CMD click on key doesn't navigate to references on typescript satisfies Record<>.  #53138

Closed
@simonsterckx

Description

@simonsterckx

Type: Bug

Steps to reproduce:

const STRINGS = {
  title: 'A Title',
} satisfies Record<string,string>;

//somewhere in app
STRINGS.title

CMD-click on STRINGS.title works; it takes me to the declaration.
However, CMD click on title declared in the STRINGS object doesn't take me to the references.

Right click + Go to references works. Removing the satisfies fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions