Type operators
Build types from other types.
- TS.05.01keyof, typeof and indexed access typesCoreMid-level9 min
- TS.05.02Conditional types and inferCoreMid-level11 min
- TS.05.03Mapped types and key remappingCoreMid-level10 min
- TS.05.04Template literal typesMid-levelBeing written
Interview questions in this module
- What is a conditional type? What does "distributive" mean?
- How does
inferwork? ImplementReturnType. - What is a mapped type? Implement
Readonly<T>. - Extract route parameters from
"/users/:id/posts/:postId"as a type. - How do you get a union type from an array of string constants?