Summary
Type aliases can be used to create dynamic and reusable code, following the Don't-Repeat-Yourself rule. This is done by using string literals and union types to create a type, and using the type keyword to declare it.
1
Type aliases can be used for simple, intersection, unions, tuples or any other valid TypeScript types.
2
To declare an alias, the syntax type myTypeName = <a valid TypeScript type> is used.
2
According to
Summary
This tutorial explains how to use TypeScript aliases to create dynamic and reusable code, following the Don't-Repeat-Yourself rule. It explains how to use string literals and union types to create a type, and how to use the type keyword to declare pet as a type. By using the type alias, code can be more generic and less repetitive.
How To Use Type Aliases in TypeScript | DigitalOcean
digitalocean.com
Summary
TypeScript allows to create reuseable aliases for a simple, intersection, unions, tuples or any other valid TypeScript types. To declare an alias we need to use the following syntax: type myTypeName = <a valid TypeScript type> Examples Simple types type
TypeScript - Type Aliases
logicbig.com
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and ...
TypeScript Type Aliases and Interfaces
w3schools.com