How the TypeScript Extract Type Works

The TypeScript Extract utility type lets us check a union type for a members, and returns a new type based on what is left over. Let's look at how it works.