Skip to main content

Utility Types

Record, Extract, and Exclude

0:00
LearnStep 1/2

Record, Extract, Exclude

Record<K, V>

Create object types with specific keys and values:

typescript

Extract<T, U>

Extract types from a union that match U:

typescript

Exclude<T, U>

Remove types from a union:

typescript