Skip to content

Glossary: TypeScript Beyond the Basics

Extract

Also written: Extract<U, M>

A utility type that keeps only the members of a union that match another type. It's the opposite of `Exclude`.

Where the book teaches it

Related terms

Exclude