- Interface
- A TypeScript construct that describes the shape of an object by listing its property names and types. Interfaces support declaration merging and are the idiomatic way to type API response objects.
- Type alias
- A TypeScript keyword (type) that names any type expression, including unions, intersections, primitives, and tuples. More flexible than interface but does not support declaration merging.
- Union type
- A TypeScript type formed with | that allows a value to be one of several types. For example, string | number means the value can be either a string or a number.
- Optional property
- A property marked with ? in a TypeScript interface, meaning the key may be absent from an object. Accessing it without a null check produces a TypeScript error when strict mode is enabled.
- Generic
- A TypeScript feature that lets you write type-safe code that works with multiple types. Array<T> is a generic type where T is a placeholder filled in at usage time.
- Type inference
- TypeScript's ability to automatically determine the type of a value from its usage without an explicit annotation. The JSON-to-TypeScript generator uses inference logic to deduce field types from sample values.