Rename doesn't work on declaration whose name is a string literal #57026
Labels
Domain: Refactorings
e.g. extract to constant or function, rename symbol
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Follow up to #56052, which was fixed by #56061. That fix means that rename from string literal values that are contextually typed by the type of the string-literal-named property do work. But renames on the actual property declaration still don't.
Playground link
As before, if you use constant with a literal type, renaming the literal type does work:
The text was updated successfully, but these errors were encountered: