-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbol
Milestone
Description
TypeScript Version: 4.2.0-dev.20201109
Search Terms:
String literal rename
Code
type Actions = { type: 'one', payload: number } | { type: 'two', payload: boolean }
const q: Actions = { type: 'one', payload: 1 }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
jsingerlenovo, andrey-semin, devfive, NinoMaj, KarllosSouza and 11 moreandrey-semin, devfive, a-tarasyuk and radu-b
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Refactoringse.g. extract to constant or function, rename symbole.g. extract to constant or function, rename symbol