Explore Library
TypeScriptAdvanced Types

45 items

1

Union, Intersection & Utility Types

Slides / Video
2

Union, Intersection & Utility Types

Flashcard
3

Higher-Order Type Manipulation Basics

Flashcard
4

Branded/Nominal Types

Flashcard
5

unique symbol Type

Flashcard
6

Structural Typing

Flashcard
7

Function Overloads

Flashcard
8

Type Widening and Narrowing

Flashcard
9

The satisfies Operator

Flashcard
10

Variance (Covariance/Contravariance)

Flashcard
11

typeof Type Operator

Flashcard
12

Type Compatibility and Assignability

Flashcard
13

Remapping Keys With as

Code Quiz
14

Variance: Covariance and Contravariance

Slides / Video
15

Mapped Types

Slides / Video
16

The infer Keyword Explained

Slides / Video
17

Conditional Types

Slides / Video
18

Indexed Access Types

Slides / Video
19

The keyof Type Operator

Slides / Video
20

The typeof Type Operator

Slides / Video
21

User-Defined Type Guards

Slides / Video
22

Type Guards and Narrowing

Slides / Video
23

Discriminated Unions

Slides / Video
24

Type Aliases in TypeScript

Slides / Video
25

Literal Types in TypeScript

Slides / Video
26

Intersection Types in TypeScript

Slides / Video
27

Union Types in TypeScript

Slides / Video
28

Branded Types via Intersection

Slides / Video
29

const Assertions in TypeScript

Slides / Video
30

Assertion Functions

Slides / Video
31

The unknown Type and Safe Narrowing

Slides / Video
32

The never Type in Advanced Contexts

Slides / Video
33

Distributive Conditional Types

Slides / Video
34

Recursive Types in TypeScript

Slides / Video
35

Advanced Utility Types

Slides / Video
36

TypeScript Utility Types Essentials

Slides / Video
37

Template Literal Types

Slides / Video
38

Key Remapping with as Clause

Slides / Video
39

Extracting Array Element Type

Code Quiz
40

Intrinsic String Manipulation Type

Code Quiz
41

Removing Optional Modifier

Code Quiz
42

Building Template Literal Types

Code Quiz
43

Conditional Type Syntax

Code Quiz
44

Mapped Type Iteration

Code Quiz
45

Distributive Conditional Over Union

Code Quiz
FlashcardIntermediate

Union, Intersection & Utility Types

Union types allow one of several types, intersections combine them, and utility types transform existing types.

Question

What's the difference between union (|), intersection (&), and utility types in TypeScript?

Click to reveal answer