Skip to content

Rename and fine all references of Typescript's string literal values  #7611

Closed
@dbaeumer

Description

@dbaeumer

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

Metadata

Metadata

Assignees

Labels

Domain: Literal TypesUnit types including string literal types, numeric literal types, Boolean literals, null, undefinedFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions