A type alias is a way to create a new name for an existing type. It allows you to define a custom type that refers to another type and gives it a more meaningful or descriptive name.

Type aliases are defined using the type keyword, followed by the name of the alias, an equal

sign (=), and the type it refers to.

image.png

image.png

Let’s Clean Up This Code Using Type Aliases 👇

image.png

image.png

image.png

image.png

image.png

Classes Cannot Implement Types

image.png

Union and Intersection Support