Difference between type & interface Typescript

The differences between type and interface in TypeScript can be summarized as follows:

1. Syntax and Usage

2. Extensibility

3. Merging

4. Use Cases

In general, you can often use either type or interface interchangeably for defining object shapes, but interfaces are typically favored for this purpose due to their extensibility and merging capabilities.