Generics
The real reusability in code.
advanced frontend topics with short solutions and explanations
TypeScript is a free and open source programming language. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. As it is a superset of JavaScript, existing JavaScript programs are also valid TypeScript programs. It may be used to develop JavaScript applications for both client-side and server-side execution.
References - wikiThe real reusability in code.
Which came first, the interface or the type? Check the differences.
See what types can offer for us TypeScript.