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`.
Glossary: TypeScript Beyond the Basics
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`.