Skip to content

๐Ÿ”ท Interfaces

interface User { id: string; name: string }
const u: User = { id: '1', name: 'Ada' };

Structural: shape matters, not nominal type identity.