TypeScript

Interface

Definition

A TypeScript construct that defines the shape of an object — what properties and methods it must have. Interfaces support extension, optional properties, and readonly modifiers. They're erased at compile time.

Code Example

Typescript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms