Object-oriented programming relies on interfaces and classes to function (OOP). TypeScript is an object-oriented JavaScript language that supports OOP concepts such as interfaces, classes, and encapsulation starting with ES6 and later.
However, when should we utilize interfaces, classes, or both? This article is for you if you are unfamiliar with interfaces and classes.
XcelTec explains what interfaces and classes are and when to use one or both in TypeScript in this article.