Foundations

Master TypeScript from first principles β€” types, generics, async, decorators, and a complete CLI capstone.

circle-info

Prerequisites: Basic JavaScript (variables, functions, arrays, objects). No TypeScript experience required.


Lab Overview

#
Lab
Key Concepts
Time

01

Primitive types, inference, tuples, interfaces, strict mode

20 min

02

Typed params, generics, overloads, closures, Result type

25 min

03

Partial, Pick, Omit, Record, mapped types, discriminated unions

30 min

04

Access modifiers, abstract, mixins, generic classes, decorators

35 min

05

String/numeric/const enums, literal unions, state machines

25 min

06

Constraints, infer, Optional<T>, Result<T,E>, TTL cache

35 min

07

ES modules, .d.ts, module augmentation, barrel files

25 min

08

Typed errors, Result pattern, never, retry, validation

30 min

09

Promise<T>, Awaited<T>, async generators, timeout/retry

35 min

10

keyof, typeof, indexed access, template literals, as const

30 min

11

Class/method/property decorators, DI container, validation

35 min

12

File I/O, HTTP server, streams, env vars, process types

35 min

13

Node test runner, typed mocks, spies, builders, property tests

30 min

14

Builder, Observer, Command, Strategy, Proxy, state machine

35 min

15

Full prodctl CLI: types, store, parser, formatter, tests

60 min

Total estimated time: ~8 hours



Learning Path

Labs 01–04 lay the foundation: types, functions, interfaces, and classes. These cover ~80% of day-to-day TypeScript.

Labs 05–08 expand your toolkit: enums, generics, modules, and error handling. You'll write code that rivals production TypeScript.

Labs 09–12 go deep: async patterns, type manipulation, decorators, and Node.js integration. These power real-world backends.

Labs 13–15 are about quality: testing, patterns, and the capstone CLI that ties everything together.


Docker Quick Start

Last updated