⊗tsSpIfInr 19 of 37 menu

Interfaces in OOP in TypeScript

In this section, we will master the advanced work with interfaces that you have already learned in the main tutorial, here.

As you already know, interfaces are declared using the interface keyword. To avoid interface and class name conflicts, the first letter of the interface name is usually 'I'.

Let's, for example, make an interface IUser that describes a user:

interface IUser { }

In the following lessons we will take a detailed look at the features of working with interfaces.

hifruzdeuzc