TypeScript and Strings
TypeScript can validate whether a function is called with an "allowed" string, as opposed to "any" string. It can even define what is "allowed" by extracting parts of other string-types. This feature has a huge potential for saving time by getting instant feedback and auto-completion in the IDE.
Weiterlesen