Skip to content

Glossary: TypeScript Beyond the Basics

Partial, Required and Readonly

Also written: Partial, Required, Readonly, Partial<T>

Utility types that change every property: `Partial` makes all optional, `Required` makes all required, and `Readonly` makes all read-only. `Readonly` is shallow, so nested arrays can still change.

Where the book teaches it

Related terms

Utility typeMapped type