Type Transformations Workshop (9 exercises)
Problem

Excluding Parts of a Discriminated Union

For this exercise, your job is to extract all of the events from the Event type whose type isn't "keydown":

To accomplish this, you'll need to use a utility type that is like the inverse of the Extract utility type we looked at previously.

Transcript

[0:00] In this exercise your job is like the inverse of the previous job where instead of just extracting one event, we now want to extract all of the events that aren't the keydown events. You're going to need another utility type. It's like the reverse of the Extract utility type that we previously looked at.