Objects & Interfaces#
TypeScript uses interfaces and type aliases to describe object shapes. Interfaces can be extended and merged; type aliases support unions and intersections. Both enforce that objects have the correct properties and types.
Object Types
Describing the shape of objects
Object types describe the shape and types of properties