TypeScript Essentials

Lesson 03 · 10 min

Objects, optional, readonly

The shape of an object is the main contract in an app.

Almost all applied TS is describing objects: which fields exist, which can be omitted, which can't be overwritten. The Handbook covers this in Object Types. Below is what people usually trip over in real code.

Sign in to continue

The rest of this lesson opens after sign up

The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.