TypeScript handbook
The official reference for the tools used in this lesson.
Lesson 3.1
A conditional type branches on assignability, and infer pulls a type out of the branch it matched. This is how utility types are built.
A conditional type branches on assignability, and infer pulls a type out of the branch it matched. This is how utility types are built.