Built-in utility types
Comes up in: Coding, Recruiter screen
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
Partial,Required,Readonly,Pick,Omit,Record,Exclude,Extract,NonNullable,ReturnType,Parameters,ConstructorParameters,InstanceType,Awaited,NoInferOmitis not distributive over unions
Words you will know
What you will practise
- use each in a realistic API type
Interview questions this answers
- Implement
PickandOmit. - What is the difference between
ExcludeandOmit? - Why does
Omitbehave badly on union types? How do you fix it? - Implement
Awaited.