Question: what is the difference between type and interface in typescript?
Answer: Unlike a type alias, an interface can be defined multiple times, and will be treated as a single interface (with members of all declarations being merged). One difference is that interfaces create a new name that is used everywhere.