2023-08-15
Types vs. Interfaces
Interfaces how they compare to Type aliases
- Shapes of objects: If we're not describing the shape of an object, we have to use a type alias because interfaces can only describe the shape of an object.

- Adding new properties: With interfaces we can reopen them and add on right after they've already been created. We can't do that with types.

- Extending Properties: Writing a class interface extends other interface, but when we use type aliases, we can't use the extended keyword. We have to use intersection types with ampersand.
