In one of my recent PRs I changed all interfaces to types because there were already more types than interfaces. In the review, I was asked to revert the change. I did it, but as well I wondered what the actual difference between interface and type. Let’s figure out this. I use the latest TS (v3.5.1) for examples in this post. Similarities Records 1interface IAnimal { 2 name: string; 3} 4 5type An
![TypeScript: type vs interface](https://cdn-ak-scissors.b.st-hatena.com/image/square/2a74ca8e065cd1cd4b56a7a65b2a980750d7b054/height=288;version=1;width=512/https%3A%2F%2Fstereobooster.com%2Fposts%2Ftypescript-type-vs-interface%2Fthekitze-tweet.png)