Required<T>
The utility type that removes the question mark from every property of T, making all of them required.
In more detail
It fits configuration after defaults have been applied, when every field is known to be present. It is the opposite of Partial.
Related terms
- Partial<T> — The utility type that makes every property of T optional, used for update or patch payloads.
- optional property — An object property marked with a question mark, such as bio?: string, which may be left out.
- mapping modifier — A plus or minus sign before readonly or the optional question mark in a mapped type, which adds or removes that modifier from every property.
Taught in
- Core Utilities: Partial, Required, Readonly, Pick And Omit — Production TypeScript