AI Instructor Live Labs Included

TypeScript Fundamentals

Add type safety to your JavaScript — annotations, interfaces, generics, utility types, and tsconfig configuration.

Intermediate
12h 35m
14 Lessons
TS-100
TypeScript Fundamentals Badge

View badge details

About This Course

Master TypeScript for safer, more maintainable code. Learn type annotations, interfaces and type aliases, union and intersection types, generics, utility types (Partial/Required/Pick/Omit), type narrowing, enums, and tsconfig configuration. The capstone builds a fully typed API client library. Requires JavaScript knowledge. Course 3 of 6 in the JavaScript Learning Path.

Course Curriculum

14 Lessons
01
AI Lesson
AI Lesson

Why TypeScript and Basic Types

30m

What TypeScript is and why use it, installing and running (tsc, ts-node), type annotations for primitives (string/number/boolean), arrays and tuples, any/unknown/never/void, type inference

02
Lab Exercise
Lab Exercise

Why TypeScript and Basic Types - Lab Exercises

1h 15m 1 Exercises

What TypeScript is and why use it, installing and running (tsc, ts-node), type annotations for primitives (string/number/boolean), arrays and tuples, any/unknown/never/void, type inference

Understanding TypeScript Benefits and Basic Type System Understanding TypeScript Benefits and Basic Type System ~30 min
03
AI Lesson
AI Lesson

Interfaces and Type Aliases

35m

Interface declarations, optional and readonly properties, extending interfaces, type aliases, interface vs type alias (when to use each), index signatures, function type signatures

04
Lab Exercise
Lab Exercise

Interfaces and Type Aliases - Lab Exercises

1h 15m 1 Exercises

Interface declarations, optional and readonly properties, extending interfaces, type aliases, interface vs type alias (when to use each), index signatures, function type signatures

Mastering TypeScript Interfaces and Type Aliases Mastering TypeScript Interfaces and Type Aliases ~30 min
05
AI Lesson
AI Lesson

Union Intersection and Literal Types

35m

Union types (string | number), discriminated unions, intersection types, literal types (specific string/number values), type narrowing with typeof/instanceof/in, type guards and assertion functions

06
Lab Exercise
Lab Exercise

Union Intersection and Literal Types - Lab Exercises

1h 15m 1 Exercises

Union types (string | number), discriminated unions, intersection types, literal types (specific string/number values), type narrowing with typeof/instanceof/in, type guards and assertion functions

Union, Intersection and Literal Types in TypeScript Union, Intersection and Literal Types in TypeScript ~30 min
07
AI Lesson
AI Lesson

Generics

35m

Generic functions, generic interfaces and classes, generic constraints (extends), default type parameters, keyof operator, mapped types basics, common generic patterns (Promise T, Array T)

08
Lab Exercise
Lab Exercise

Generics - Lab Exercises

1h 15m 1 Exercises

Generic functions, generic interfaces and classes, generic constraints (extends), default type parameters, keyof operator, mapped types basics, common generic patterns (Promise, Array)

TypeScript Generics: Building Type-Safe Data Structures TypeScript Generics: Building Type-Safe Data Structures ~30 min
09
AI Lesson
AI Lesson

Utility Types and Advanced Patterns

35m

Built-in utility types (Partial/Required/Pick/Omit/Record/Readonly/ReturnType), conditional types basics, template literal types, enums (string and numeric), declaration files (.d.ts), strict mode configuration

10
Lab Exercise
Lab Exercise

Utility Types and Advanced Patterns - Lab Exercises

1h 15m 1 Exercises

Built-in utility types (Partial/Required/Pick/Omit/Record/Readonly/ReturnType), conditional types basics, template literal types, enums (string and numeric), declaration files (.d.ts), strict mode configuration

Exercise 1 Exercise 1 ~30 min
11
AI Lesson
AI Lesson

tsconfig and Project Setup

30m

tsconfig.json options (target/module/strict/outDir/rootDir/paths), source maps, declaration files, ESM vs CJS output, integrating with existing JS projects, migrating JS to TS incrementally

12
Lab Exercise
Lab Exercise

tsconfig and Project Setup - Lab Exercises

1h 15m 1 Exercises

tsconfig.json options (target/module/strict/outDir/rootDir/paths), source maps, declaration files, ESM vs CJS output, integrating with existing JS projects, migrating JS to TS incrementally

TypeScript Configuration and Professional Project Setup TypeScript Configuration and Professional Project Setup ~30 min
13
AI Lesson
AI Lesson

Capstone Briefing Type-Safe API Client

30m

Capstone briefing: build a fully typed API client library with generics, interfaces for request/response types, error handling with discriminated unions, and strict tsconfig

14
Lab Exercise
Lab Exercise

Capstone Type-Safe API Client

1h 15m 1 Exercises

Capstone: build a fully typed API client library with generics, interfaces for request/response types, error handling with discriminated unions, and strict tsconfig

Capstone Type-Safe API Client Capstone Type-Safe API Client ~30 min

This course includes:

  • 24/7 AI Instructor Support
  • Live Lab Environments
  • 7 Hands-on Lessons
  • Completion Badge
TypeScript Fundamentals Badge

Earn Your Badge

Complete all lessons to unlock the TypeScript Fundamentals achievement badge.

Category
Skill Level Intermediate
Total Duration 12h 35m
TypeScript Fundamentals Badge
Achievement Badge

TypeScript Fundamentals

Demonstrates proficiency in TypeScript — type annotations, interfaces, generics, utility types, and type narrowing.

Course TypeScript Fundamentals

Skills You'll Earn

TypeScript Interfaces Generics Type Safety tsconfig

Complete all lessons in this course to earn this badge