Which of the following situations is best suited for type aliases?
Defining object shapes with optional properties.
Representing a union type like number | string
Extending a reusable object structure.
Defining an interface for a class implementation.
This question is part of this quiz :
Object Types and Interfaces in TypeScript Quiz