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
Expected behavior:
Renaming of values of 'type' fields should also rename the value in actual variable. For example if I rename 'one' in the type Actions TS should also rename the value of type field in q variable, and vice versa.
Actual behavior:
Looks like renaming doesn't start at all
I think this could be quite a priority, a great number of people use typed actions/events (in redux, ect). They just don't know that it could be refactored without pain and additional replacement work.
TypeScript Version: 4.2.0-dev.20201109
Search Terms:
String literal rename
Code
Expected behavior:
Renaming of values of 'type' fields should also rename the value in actual variable. For example if I rename
'one'
in the typeActions
TS should also rename the value oftype
field inq
variable, and vice versa.Actual behavior:
Looks like renaming doesn't start at all
Playground Link:
https://www.typescriptlang.org/play?ts=4.2.0-dev.20201109#code/C4TwDgpgBAggxsAlgewHYGcoF4oG8qiQBcUA5GhKQDRRgCGIANsnQCYmoCuAtgEYQAnKAF8oAHzwFwEEqWAB3ZNVoNmbEr2TJGEOqhEAoOGnTAoARxLwkJ7JMIyyFZfSYt2UAIwigA
Related Issues:
#5602
#39298
The text was updated successfully, but these errors were encountered: