When to Use Type or Interface With TypeScript
In this article, I’ll be going over the differences between type
and interface
declarations in TypeScript. This is a question I often get asked at work and I thought it would be a good idea to make it into an article to share.
Types
When referring to a Type created with the type
keyword, what we are really referring to are Type Aliases. Type is often used…