Objects
14 lessons
- 01Object Literal TypesLearn how to describe the shape of objects in TypeScript.
- 02Extra PropertiesUnderstand the rules for passing objects with additional properties.
- 03Optional Object PropertiesLearn how to define object properties that are not strictly required.
- 04Empty Object TypeUnderstand the behavior of the empty object type in TypeScript.
- 05Discriminated UnionsLearn how to use tag properties to handle complex object unions safely.
- 06SetsLearn how to manage collections of unique values in TypeScript.
- 07MapsLearn how to use typed key-value pairs with the Map collection.
- 08Dynamic KeysLearn how to use index signatures for objects with unknown property names.
- 09Dynamic Default PropertiesLearn how to combine required properties with dynamic index signatures.
- 10PropertyKeyUnderstand the built-in type for all valid JavaScript object keys.
- 11Readonly ModifierLearn how to make object properties immutable at compile-time.
- 12As Const and Object.freezeLearn how to enforce immutability at both compile-time and runtime.
- 13SatisfiesValidate a type while preserving the most specific inferred type information.
- 14Function OverloadsLearn how to define multiple signatures for a single function implementation.