Introduction to TypeScript Interfaces

John Au-Yeung
Level Up Coding
Published in
6 min readDec 5, 2019

--

Photo by Emerson Peters on Unsplash

The big advantage of TypeScript over plain JavaScript is that it extends the features of JavaScript by adding type safety to our program’s objects. It does this by checking the shape of the values that objects can take on. Checking the shape is called duck typing or structural typing. It’s very useful for defining contracts within our code in TypeScript programs. In this article, we’ll look at how to define a TypeScript…

--

--