Outline updated November 2026
TypeScript Essentials
Class Duration
14 hours of live training delivered over 2 days.
Student Prerequisites
- Prior programming experience in some language
- JavaScript experience is helpful but not required
- Comfortable working in an editor and a terminal
Target Audience
Programmers who are new to TypeScript and build modern web applications, including JavaScript developers adding static types. Ready to go deeper? Continue to Advanced TypeScript.
Description
This course gives programmers a solid foundation in TypeScript. It starts with how TypeScript relates to JavaScript and how to install and run the native compiler. Students then work through the type system: annotations, inference, unions, narrowing, and the special types any, unknown, and never. They define their own types, write generics, and use classes, interfaces, and standard decorators. The final modules cover a modern tsconfig, ES modules, bundling, type stripping in Node.js, and typing framework code.
Learning Outcomes
- Explain how TypeScript relates to JavaScript.
- Compare structural and nominal typing.
- Narrow types with type guards.
- Type primitives, objects, functions, enums, and unions.
- Use
any,unknown, andnevercorrectly. - Define custom types with aliases, utility types, and mapped types.
- Write generic functions and classes with constraints.
- Check values against types with
satisfies. - Build classes with interfaces, access modifiers, and decorators.
- Clean up resources with
usingdeclarations. - Configure a strict
tsconfigwith ES modules. - Run TypeScript in Node.js with type stripping.
Training Materials
All students receive comprehensive courseware covering all topics in the course. Courseware is distributed via GitHub in the form of documentation and extensive code samples. Students practice the topics covered through challenging hands-on lab exercises.
Software Requirements
Students will need a free, personal GitHub account to access the courseware. Students will need permission to install Node.js and Visual Studio Code on their computers. Also, students will need permission to install NPM Packages and Visual Studio Code extensions. If students are unable to configure a local environment, a cloud-based environment can be provided.
Versions covered: TypeScript 7 on Node.js 26 LTS or another supported LTS line.
Training Topics
TypeScript Fundamentals and Setup
- What is TypeScript?
- JavaScript and TypeScript
- Dynamic vs. static typing
- Loose vs. strong typing
- Limitations of TypeScript
- Installing TypeScript and the native compiler
- Compiling a simple program
AI Coding Assistants (optional)
- AI assistants in VS Code
- Generating and explaining types
- Using an assistant for terminal commands
- Using your team's AI tool
Typing Concepts
- What is typing?
- Memory structure
- Semantic meaning
- Structural typing
- Nominal typing
- Branding
- Enums
- Private members
- Type narrowing
- Type guards
Types
- JavaScript types
- Rule of first assignment
- Static typing of primitives
- Static typing of objects
- Static typing of functions
- Enum types
- Discriminated unions
- Union and intersection types
- Nullish values and types
- The
any,unknown, andnevertypes
Defining Types
- Type aliases
- Utility types
- The
typeofoperator - The
keyofoperator - Indexed access types
- Conditional types
- Mapped types
- Template literal types
Generic Types
- Generic type parameters
- Constraints
- Inferring type parameters
- Passing in type parameters
consttype parameters- Generic classes and functions
- The
satisfiesoperator
Classical Object-Oriented Programming
- Classes
- Interfaces
- Abstract classes
- Access modifiers
- Inheritance
- Standard decorators
- Legacy
experimentalDecorators
Modern TypeScript Features
usingandSymbol.disposeawait usingfor async cleanup- Type predicates and narrowing
inferand recursive types
Project Configuration and the Compiler
tsconfigessentials- Strict-by-default settings
module,target, andtypes- Removed legacy options
- The native compiler
Using TypeScript for Applications
- Bundling with Vite or esbuild
- Rspack and Webpack
- Type stripping in Node.js
- Running TypeScript with
tsx - ES modules
- Named and default exports
- JSON modules
- Dynamic imports
TypeScript with Frameworks
- Typing React components and hooks
- Typing Angular components and services
- Typing Express and Fastify handlers