Type meta dependencies #751
Labels
Out of Scope
This idea sits outside of the TypeScript language design constraints
Suggestion
An idea for TypeScript
Too Complex
An issue which adding support for may be too complex for the value it adds
Consider this scenario.
{ "id": 100, "name": "Joe Bloggs" , "address":"1 London"}
And we define the object as follows:
The idea being that if someone changes, say,
Person.name
toPerson.firstName
then that would highlight the hidden reference toname
in the string literal.A similar problem was highlighted in #394.
I wonder if TypeScript could formalise this somehow:
so that it's not possible to change Person without breaking this code.
The text was updated successfully, but these errors were encountered: