Explore Library
TypeScriptUtility Types

55 items

1

Generics, Unions & Utility Types

Slides / Video
2

Generics, Unions & Utility Types

Flashcard
3

Building Custom Utility Types

Slides / Video
4

Exclude and Extract Distribute Over Unions

Slides / Video
5

Composing Multiple Utility Types

Slides / Video
6

Utility Types Built From Type Operators

Slides / Video
7

String Manipulation Utility Types

Slides / Video
8

Awaited<T> Unwraps Promise Types

Slides / Video
9

ThisParameterType and OmitThisParameter

Slides / Video
10

InstanceType<T> Extracts Instance Types

Slides / Video
11

ConstructorParameters<T> Extracts Constructor Args

Slides / Video
12

Parameters<T> Extracts Argument Types

Slides / Video
13

ReturnType<T> Extracts Return Types

Slides / Video
14

NonNullable<T> Strips Null and Undefined

Slides / Video
15

Extract<T, U> Keeps Matching Union Members

Slides / Video
16

Exclude<T, U> Removes Union Members

Slides / Video
17

Omit<T, K> Excludes Properties

Slides / Video
18

Pick<T, K> Selects a Subset

Slides / Video
19

Record<K, T> Maps Keys to Values

Slides / Video
20

Readonly<T> Locks Every Property

Slides / Video
21

Required<T> Makes Properties Required

Slides / Video
22

Partial<T> Makes Properties Optional

Slides / Video
23

Partial and Required Modifiers

Code Quiz
24

Record with Union Keys

Code Quiz
25

ThisParameterType and OmitThisParameter

Quiz
26

ConstructorParameters basics

Quiz
27

Composing utility types

Quiz
28

Utility types over unions

Quiz
29

Pick/Omit with index signatures

Quiz
30

ThisType for contextual this

Quiz
31

Implementing utility types

Quiz
32

Homomorphic modifier preservation

Quiz
33

Omit vs Exclude semantics

Quiz
34

Record with literal key sets

Quiz
35

Deep Partial and Readonly

Quiz
36

Composing utility types

Code Quiz
37

Uncapitalize a class name

Code Quiz
38

Utility types with generics

Code Quiz
39

Lowercase for header names

Code Quiz
40

Pick vs Omit with keyof

Code Quiz
41

Capitalize a name literal

Code Quiz
42

Uppercase for HTTP methods

Code Quiz
43

ThisType for contextual this

Code Quiz
44

Required makes every property mandatory

Code Quiz
45

Stripping the this parameter

Code Quiz
46

Omit expects a union of keys

Code Quiz
47

ThisParameterType needs a type

Code Quiz
48

ConstructorParameters needs the class type

Code Quiz
49

Partial for update functions

Code Quiz
50

Readonly blocks property assignment

Code Quiz
51

Pick with a non-existent key

Code Quiz
52

Record<K, T>

Flashcard
53

Omit<T, K>

Flashcard
54

String Manipulation Utilities

Flashcard
55

NoInfer<T>

Flashcard
Flashcard

Generics, Unions & Utility Types

How TypeScript's built-in utility types combine generics and union types to transform existing types.

Question

How do utility types like Partial<T> or Pick<T, K> leverage generics and unions?

Click to reveal answer