Interface

An interface defines the structure of an object or class in TypeScript.

Snippet:

interface MyObject { property: string; method(): void; }

Example:

interface User { name: string; age: number; }