Interfaces, Classes and More

Learn how to create interfaces and classes in this lesson.

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.

Get hands-on with 1200+ tech skills courses.