TypeScript Showdown: Type vs Interface - Why 'Type' Wins | HackerNoon
Briefly

TypeScript allows developers to define custom shapes using type aliases or interfaces. However, type aliases are increasingly favored due to their flexibility and ability to express more complex structures, such as unions, tuples, and conditional types. While interfaces are limited to defining object shapes and function signatures, type aliases can describe a broader range of scenarios, including primitive types and mapped types. This flexibility makes type the preferable choice in modern TypeScript applications.
Type is more versatile and can describe things that interface can't, like unions, primitives, tuples, and conditional types, making it a better choice for modern TypeScript.
Using 'type' allows for more advanced structures, such as defining union types and mapped types, which are crucial for leveraging TypeScript's capabilities in complex applications.
Read at Hackernoon
[
|
]