Google News
logo
TypeScript - Interview Questions
What is the difference between Interface and Type in TypeScript?
In TypeScript, both Interface and Type describe the structure of objects. The following table explains the differences between both of them :

Interface  Type
It’s a form of syntax. It’s a form of a collection of data types.
Provides a way to define the entities. It supports the creation of a new name for a type.
Comparatively includes more capabilities than Type. Comparatively includes fewer capabilities than Interface.
Can use multiple merged declarations Cannot use multiple merged declarations
Two interfaces having the same name get merged. Two interfaces having the same name get merged.
Advertisement