Skip to content

Glossary: Software Design Patterns in JavaScript

Interface

Also written: interfaces

The set of methods that code expects an object to have, whatever its class. JavaScript has no `interface` keyword, so an interface is usually written down as a comment.

Where the book teaches it

Related terms

Duck typingTypeScriptInterface segregation principle (ISP)