TypeScript: Typing JavaScript with Confidence
Master TypeScript from scratch — typing javascript with confidence.
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
Setting Up the TypeScript Environment
4 min - 2
Understanding tsconfig.json
3 min - 3
Basic Primitives and Type Annotations
4 min - 4
Type Inference in Practice
3 min - 5
Defining Object Shapes with Interfaces
3 min - 6
Using Type Aliases
4 min - 7
Handling Optional Properties
3 min - 8
Typing Function Parameters
3 min - 9
Defining Function Return Types
4 min - 10
Working with Arrays of Objects
4 min - 11
Understanding Void and Undefined
4 min - 12
Asynchronous Functions and Promises
4 min - 13
Union Types for Flexibility
4 min - 14
Literal Types for Status Codes
4 min - 15
Type Narrowing with Conditionals
4 min - 16
The Typeof Guard
4 min - 17
The In Operator for Object Narrowing
4 min - 18
Discriminated Unions
4 min - 19
Any vs Unknown
4 min - 20
Introduction to Generics
4 min - 21
Generics with Interfaces
3 min - 22
Constraining Generics
4 min - 23
Using keyof for Dynamic Access
3 min - 24
Indexed Access Types
4 min - 25
Partial Utility Type
4 min - 26
Pick and Omit Utilities
4 min - 27
Type Assertions
4 min - 28
Non-Null Assertion Operator
3 min - 29
Building the Task API Client: Setup
3 min - 30
Typing API Responses
Coming soon - 31
Creating a Generic Request Wrapper
Coming soon - 32
Handling API Errors
Coming soon - 33
Query Parameters with Generics
Coming soon - 34
Implementing GET Requests
Coming soon - 35
Mapping API Data to Local Models
Coming soon - 36
Using DefinitelyTyped
Coming soon - 37
Type declaration files (.d.ts)
Coming soon - 38
Enforcing Strict Null Checks
Coming soon - 39
Exhaustive Switch Statements
Coming soon - 40
Mapped Types
Coming soon - 41
Conditional Types
Coming soon - 42
Inferring Types in Conditionals
Coming soon - 43
Final Refactoring of the Task Client
Coming soon - 44
Testing Type-Safe Code
Coming soon - 45
Managing Environment Variables with Types
Coming soon - 46
Handling Deeply Nested Data
Coming soon