TypeScriptTypes & Basic Syntax

65 items

1

Union Type Narrowing Mistake

Code Quiz
2

Type Inference and Union Types

Quiz
3

TypeScript Type System Basics

Slides / Video
4

Types, Interfaces, Unions & Inference

Flashcard
5

Interface Property Type Mismatch

Code Quiz
6

Interfaces and Type Annotations

Quiz
7

Basic Types, Interfaces & Annotations

Slides / Video
8

Basic Types & Interfaces

Flashcard
9

Object type annotations

Flashcard
10

Union Types in TypeScript

Slides / Video
11

Literal Types in TypeScript

Slides / Video
12

The never Type in TypeScript

Slides / Video
13

The unknown Type in TypeScript

Slides / Video
14

The void Type in TypeScript

Slides / Video
15

The null and undefined Types

Slides / Video
16

Tuple Types in TypeScript

Slides / Video
17

Array Types in TypeScript

Slides / Video
18

Enums: Numeric and String

Slides / Video
19

Type Assertions in TypeScript

Slides / Video
20

The bigint and symbol Primitives

Slides / Video
21

Optional Properties in Object Types

Slides / Video
22

Inline Object Type Annotations

Slides / Video
23

The Object Type in TypeScript

Slides / Video
24

Type Aliases with the type Keyword

Slides / Video
25

bigint Type

Code Quiz
26

Optional Object Properties

Code Quiz
27

The symbol Type

Code Quiz
28

The never Type

Code Quiz
29

Readonly Property Modifier

Code Quiz
30

Variable Declarations with Types

Code Quiz
31

Function Parameter Type Annotations

Code Quiz
32

Type Assertions with as

Quiz
33

Optional and Default Parameters

Quiz
34

Function Parameter Annotations

Quiz
35

Optional Properties

Quiz
36

Tuple Types Basics

Quiz
37

The symbol Type

Quiz
38

Type Aliases

Quiz
39

Inline Object Type Annotations

Quiz
40

The bigint Type

Quiz
41

Union Types

Quiz
42

The never Type

Quiz
43

Enum Types

Quiz
44

Function Return Type Annotations

Quiz
45

Literal Types

Quiz
46

The enum type

Flashcard
47

Optional function parameters

Flashcard
48

The null type

Flashcard
49

Function parameter types

Flashcard
50

Optional properties

Flashcard
51

The void return type

Flashcard
52

The undefined type

Flashcard
53

Default parameter values

Flashcard
54

Type aliases

Flashcard
55

any vs unknown

Flashcard
56

Array type syntax

Flashcard
57

Literal types

Flashcard
58

Generic array syntax

Flashcard
59

Tuple types

Flashcard
60

const and readonly basics

Flashcard
61

The unknown type

Flashcard
62

The never type

Flashcard
63

Union types

Flashcard
64

Type assertions

Flashcard
65

Function return types

Flashcard
QuizBeginner

Optional Properties

A ? after a property name marks it optional so it may be omitted.

In the type { name: string; age?: number }, what does the ? on age mean?