TypeScript interfaces
Illustrative exampleEach object becomes an interface; arrays become typed lists.
export interface Address { city: string; zip: string;} export interface User { id: number; name: string; email: string; active: boolean; address: Address; tags: string[];}