You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, "go to implementation" on a type functionality for typescript code in VSCode will go to places where an object of this type is created. This works
interfacePerson{name: string;}functionf(){constjohn: Person={name: 'John'};// both this type annotation and `as` syntaxes show these objects as implementations of `Person` constandrew={name: 'Andrew'}asPerson;consttyler={name: 'Tyler'}satisfiesPerson;// this is not shown as an implementation of `Person` }
π Motivating Example
Go to implementation is a very easy way to see who produces objects of a particular type.
satisfies marking a type to adhere to a particular type without creating a new variable using type annotation syntax.
π» Use Cases
What do you want to use this for?
Identify implementations of a type.
What shortcomings exist with current approaches?
None I can think of.
What workarounds are you using in the meantime?
Going to references and reading code.
The text was updated successfully, but these errors were encountered:
π Search Terms
"satisfies", "go-to-implementation", "go to implementation", "implementation"
β Viability Checklist
β Suggestion
Currently, "go to implementation" on a type functionality for typescript code in VSCode will go to places where an object of this type is created. This works
π Motivating Example
Go to implementation is a very easy way to see who produces objects of a particular type.
satisfies
marking a type to adhere to a particular type without creating a new variable using type annotation syntax.π» Use Cases
What do you want to use this for?
Identify implementations of a type.
What shortcomings exist with current approaches?
None I can think of.
What workarounds are you using in the meantime?
Going to references and reading code.
The text was updated successfully, but these errors were encountered: