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
//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.
The text was updated successfully, but these errors were encountered:
Type script string literals allow to have a code such as
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.
The text was updated successfully, but these errors were encountered: