Objects model real-world entities. In TypeScript, you describe an object's shape by listing its properties and their types:
const user: { id: number; name: string } = {
id: 1,
name: "Alice"
};Shapes are structural—if a value has at least those properties with the right types, it matches the shape.
Key concepts:
? like { first: string; last?: string }readonly id: numberIn this category, you'll:
undefined)By the end, you'll be comfortable modeling real-world data with TypeScript's object types.