Skip to content

Language services for keyof types #11997

Closed
@jods4

Description

@jods4

As asked by @mhegazy in #11929 this issue is for tracking language services for the new keyof type.


I hope this will surface in the language services like Find references and Rename?

function pluck<T, K extends keyof T>(xs: T[], prop: K): T[K][];

class Thing { name: string; }

// Is this found when looking for references to Thing.name?
// Does renaming Thing.name to firstName update the string?
let x = pluck(things, "name");

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDesign LimitationConstraints of the existing architecture prevent this from being fixed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions