Overview of Interfaces in TypeScript
Let's learn about using an interface to ensure strongly typed code.
We'll cover the following...
What is an interface?
An interface is an abstract type in TypeScript that informs the compiler about the structure of an object. We can utilize interfaces to build custom data types, allowing us to strongly type our code.
Let’s consider the following example to better understand the concept of interface. We’ve defined an interface ...