-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Domain: Literal TypesUnit types including string literal types, numeric literal types, Boolean literals, null, undefinedUnit types including string literal types, numeric literal types, Boolean literals, null, undefinedFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
From @zivni on March 20, 2016 8:40
Type script string literals allow to have a code such as
//interfaces.d.ts
type Options = "option 1 " | "option 2"
//file.ts
let myOption: Options = "option 1" // "option 3" will give us an error, right in the IDE.
It would be nice to be able to rename and find all references of a specific value. e.g. find/rename all occurrences of "option 1". Currently we can only find the references of the type itself.
Copied from original issue: microsoft/vscode#4469
maxime1992
Metadata
Metadata
Assignees
Labels
Domain: Literal TypesUnit types including string literal types, numeric literal types, Boolean literals, null, undefinedUnit types including string literal types, numeric literal types, Boolean literals, null, undefinedFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript