Creating interfaces

In this lesson, we learn what interfaces are and how to create them.

Understanding an interface #

An interface allows a new type to be created with a name and structure. The structure includes all the properties and methods that the type has without any implementation.

Interfaces don’t exist in JavaScript; they are only used by the TypeScript compiler type checking process.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy