Interfaces, Classes and More
Learn how to create interfaces and classes in this lesson.
We'll cover the following...
Interfaces #
In one of the prior examples I set the type of our variable like this: Array<{label:string,value:string}>
But what if the shape of our variable is much more complicated and we need to reuse it in multiple places?
We can use an interface
to define the shape that that variable should have.
Access this course and 1400+ top-rated courses and projects.