TypeScriptInterfaces & Type Aliases

74 items

1

Narrowing a Discriminated Union

Code Quiz
2

Narrowing a Discriminated Union

Quiz
3

TypeScript Type System Building Blocks

Slides / Video
4

Interfaces, Unions, Generics & Narrowing

Flashcard
5

Type Alias vs Interface Merging

Code Quiz
6

Interface vs Type Alias Capabilities

Quiz
7

Interfaces vs Type Aliases

Slides / Video
8

Interface vs Type Alias

Flashcard
9

TypeScript Type System Essentials

Slides / Video
10

Type System Essentials Overview

Flashcard
11

Callable and Constructable Interfaces

Slides / Video
12

Implementing Interfaces in Classes

Slides / Video
13

Type Aliases Beyond Objects

Slides / Video
14

Interface vs Type Alias

Slides / Video
15

Declaration Merging of Interfaces

Slides / Video
16

Union Types via Type Aliases

Slides / Video
17

Intersection Types with Type Aliases

Slides / Video
18

Extending Interfaces with extends

Slides / Video
19

Index Signatures for Dynamic Keys

Slides / Video
20

Function Types with Interfaces and Aliases

Slides / Video
21

Readonly Properties in Types

Slides / Video
22

Optional Properties in Types

Slides / Video
23

Type Aliases with the type Keyword

Slides / Video
24

Declaring Interfaces for Object Shapes

Slides / Video
25

Readonly Properties

Quiz
26

Interface vs Type Alias

Quiz
27

Excess Property Checks

Quiz
28

Optional Properties

Quiz
29

Declaration Merging of Interfaces

Quiz
30

Type Alias Intersections

Quiz
31

Function Types

Quiz
32

Declaring an Interface

Quiz
33

Call and Construct Signatures

Quiz
34

Index Signatures

Quiz
35

Implementing Interfaces in Classes

Quiz
36

Nested Object Types

Quiz
37

Extending Multiple Interfaces

Quiz
38

Extending Interfaces

Quiz
39

Combining Aliases Wrong

Code Quiz
40

Recursive Structure Type

Code Quiz
41

Function Type Alias Syntax

Code Quiz
42

Literal Union Alias Case

Code Quiz
43

Type Alias Cannot Merge

Code Quiz
44

Excess Property Check

Code Quiz
45

Extends vs Intersection

Code Quiz
46

Class Implementing Interface

Code Quiz
47

Index Signatures

Code Quiz
48

Extending an Interface

Code Quiz
49

Function Type Interface

Code Quiz
50

Interface Declaration Merging

Code Quiz
51

Object Shape Type Alias

Code Quiz
52

Union Type Alias

Code Quiz
53

Declaring an Interface

Code Quiz
54

Construct Signatures

Code Quiz
55

Method Signatures

Flashcard
56

Function Type Signatures

Flashcard
57

Index Signatures

Flashcard
58

Type Alias for Object Shapes

Flashcard
59

Type Alias for Primitives and Literals

Flashcard
60

Type Alias for Tuples

Flashcard
61

Intersection Types

Flashcard
62

Extending Interfaces

Flashcard
63

Interface Declaration Merging

Flashcard
64

Interface Declaration Syntax

Flashcard
65

When to Use Interface vs Type

Flashcard
66

Call Signatures

Flashcard
67

Classes Implementing Interfaces

Flashcard
68

Excess Property Checks

Flashcard
69

Interfaces Extending Classes

Flashcard
70

Interface vs Type Alias

Flashcard
71

Construct Signatures

Flashcard
72

Extending Multiple Interfaces

Flashcard
73

Nested and Composed Interfaces

Flashcard
74

Type Alias for Function Types

Flashcard
Flashcard

Interfaces, Unions, Generics & Narrowing

Interfaces model object shapes, unions combine types, generics add reusable type parameters, and narrowing refines types at runtime.

Question

How do interfaces, union types, generics, and narrowing work together in TypeScript?

Click to reveal answer