All Courses
beginner TypeScript

TypeScript: Typing JavaScript with Confidence

Master TypeScript from scratch — typing javascript with confidence.

46 lessons 46 available ~170 min total
Start the course

What you'll learn

By the end you can confidently apply TypeScript at a beginner level: typing javascript with confidence, with real, working code.

Who it's for

Developers learning TypeScript at a beginner level.

Prerequisites

Working JavaScript (ES6).

A structured, hands-on beginner course on TypeScript, taking you from scratch by building a fully-typed task API client.

Curriculum

  1. 1

    Setting Up the TypeScript Environment

    4 min
  2. 2

    Understanding tsconfig.json

    3 min
  3. 3

    Basic Primitives and Type Annotations

    4 min
  4. 4

    Type Inference in Practice

    3 min
  5. 5

    Defining Object Shapes with Interfaces

    3 min
  6. 6

    Using Type Aliases

    4 min
  7. 7

    Handling Optional Properties

    3 min
  8. 8

    Typing Function Parameters

    3 min
  9. 9

    Defining Function Return Types

    4 min
  10. 10

    Working with Arrays of Objects

    4 min
  11. 11

    Understanding Void and Undefined

    4 min
  12. 12

    Asynchronous Functions and Promises

    4 min
  13. 13

    Union Types for Flexibility

    4 min
  14. 14

    Literal Types for Status Codes

    4 min
  15. 15

    Type Narrowing with Conditionals

    4 min
  16. 16

    The Typeof Guard

    4 min
  17. 17

    The In Operator for Object Narrowing

    4 min
  18. 18

    Discriminated Unions

    4 min
  19. 19

    Any vs Unknown

    4 min
  20. 20

    Introduction to Generics

    4 min
  21. 21

    Generics with Interfaces

    3 min
  22. 22

    Constraining Generics

    4 min
  23. 23

    Using keyof for Dynamic Access

    3 min
  24. 24

    Indexed Access Types

    4 min
  25. 25

    Partial Utility Type

    4 min
  26. 26

    Pick and Omit Utilities

    4 min
  27. 27

    Type Assertions

    4 min
  28. 28

    Non-Null Assertion Operator

    3 min
  29. 29

    Building the Task API Client: Setup

    3 min
  30. 30

    Typing API Responses

    4 min
  31. 31

    Creating a Generic Request Wrapper

    4 min
  32. 32

    Handling API Errors

    4 min
  33. 33

    Query Parameters with Generics

    4 min
  34. 34

    Implementing GET Requests

    3 min
  35. 35

    Mapping API Data to Local Models

    4 min
  36. 36

    Using DefinitelyTyped

    3 min
  37. 37

    Type declaration files (.d.ts)

    4 min
  38. 38

    Enforcing Strict Null Checks

    4 min
  39. 39

    Exhaustive Switch Statements

    3 min
  40. 40

    Mapped Types

    4 min
  41. 41

    Conditional Types

    4 min
  42. 42

    Inferring Types in Conditionals

    3 min
  43. 43

    Final Refactoring of the Task Client

    4 min
  44. 44

    Testing Type-Safe Code

    3 min
  45. 45

    Managing Environment Variables with Types

    4 min
  46. 46

    Handling Deeply Nested Data

    4 min