TypeScriptConditional & Mapped Types (Type-Level Programming)

68 items

1

The infer Keyword

Flashcard
2

Custom Pick Uses keyof K

Code Quiz
3

DeepReadonly Missing Base Case

Code Quiz
4

Preventing Distribution with Tuple Wrapping

Quiz
5

Assignability of Conditional Types

Quiz
6

Template Literal Types in Key Remapping

Slides / Video
7

Homomorphic vs Non-Homomorphic Maps

Slides / Video
8

Combining Mapped and Conditional Types

Slides / Video
9

Value Transformation in Mapped Types

Slides / Video
10

Filtering Keys via never

Slides / Video
11

Mapping Modifiers with +/-

Slides / Video
12

Recursive Conditional Types

Slides / Video
13

Multiple infer in One Conditional

Slides / Video
14

Preventing Distribution with Tuple Wrapping

Slides / Video
15

Nested and Chained Conditional Types

Slides / Video
16

Deep Recursive Mapped Types

Slides / Video
17

Distribution with boolean and never

Quiz
18

Key Remapping with Template Literals

Quiz
19

Mapping Over Unions vs Object Types

Quiz
20

Template Literal Inference with infer

Quiz
21

Multiple and Nested infer Positions

Quiz
22

Type-Level Accumulator with Tuples

Quiz
23

Nested and Chained Conditional Types

Quiz
24

Type-Level String Utilities

Quiz
25

never in Conditional and Mapped Types

Quiz
26

Per-Property Conditional Values

Quiz
27

Inferring Within Constraints

Quiz
28

Recursive Conditional Types for Deep Transforms

Quiz
29

Deferred Conditional Type Resolution

Quiz
30

Recursion Depth Limits

Quiz
31

Filtering Keys with never in Remapping

Quiz
32

Getter Keys Not Capitalized

Code Quiz
33

Booleanize String Properties

Code Quiz
34

ReturnType Infers The Args

Code Quiz
35

Awaited Skips Nested Promises

Code Quiz
36

Reused infer Name

Code Quiz
37

Key Filter Backwards

Code Quiz
38

Constrained infer Syntax

Code Quiz
39

Nullable Uses Whole Type

Code Quiz
40

Filter Keeps Wrong Members

Code Quiz
41

Partial Strips readonly

Code Quiz
42

Unreachable Array Branch

Code Quiz
43

IsNever Fails on never

Code Quiz
44

Preventing Distribution

Flashcard
45

Nested Conditional Types

Flashcard
46

Distributive Conditional Types

Flashcard
47

Recursion Depth Limits

Flashcard
48

Homomorphic Mapped Types

Flashcard
49

Variadic Tuple Types

Flashcard
50

Conditional Type Syntax

Flashcard
51

Mapped Type Syntax

Flashcard
52

Recursive Mapped Types

Flashcard
53

Tuple Manipulation with infer

Flashcard
54

Filtering Keys with never

Flashcard
55

Indexed Access Types

Flashcard
56

Type-Level Equality Checks

Flashcard
57

Lookup with Unions of Keys

Flashcard
58

Combining Conditional and Mapped Types

Flashcard
59

Iterating Keys with keyof

Flashcard
60

Deferred Conditional Resolution

Flashcard
61

Inference in Template Literals

Flashcard
62

Template Literals in Key Remapping

Flashcard
63

Recursive Conditional Types

Flashcard
64

readonly Modifier in Mapped Types

Flashcard
65

Template Literal Types

Flashcard
66

Union Keys vs keyof T

Flashcard
67

Optional Modifier in Mapped Types

Flashcard
68

Key Remapping with as

Flashcard
QuizAdvanced

Inferring Within Constraints

Using `infer X extends Y` to constrain an inferred type parameter.

In `type Head<T> = T extends [infer F extends string, ...unknown[]] ? F : never`, what is the purpose of `extends string`?