
TypeScript Interfaces and JavaScript Higher-Order Functions
An interface is a structure that defines the contract in your application. Classes that are derived from an interface must follow the structure provided by their interface. An interface is defined with the keyword interface and it can include properties and method declarations: