As per the answers in this question, it is clear to me that type
can be a an identifier for a property in classes/interfaces etc.
But why does Typescript permit this? It is not common in my experience that languages allow keywords to be used as identifiers. Why this aberration in TS?
I tried looking through TS docs but couldn’t find an answer to this.
New contributor
Flame of Anor is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.