Practical technology training

Course outline for TypeScript

Connect the concepts, work through practical problems, and choose a training plan that fits your goals.

About TypeScript

TypeScript adds static type checking to JavaScript without replacing the JavaScript runtime. Learn to model application data, narrow uncertain values, and maintain typed module boundaries while understanding which checks still belong at runtime.

TypeScript Course Objectives

  • Configure a TypeScript project with strict checking.
  • Model data with interfaces, unions, and generics.
  • Validate external inputs rather than relying on type assertions.
  • Build and test typed asynchronous application code.
  • Plan an incremental migration from JavaScript.

Pre-requisites

  • Working knowledge of JavaScript, functions, objects, and promises.
  • Basic command-line, Git, and package-management experience.

Lab Setup

  • A computer with a code editor, Git, and a supported Node.js release.
  • A supplied TypeScript project, test runner, and local API fixtures.
  • Install compatible compiler and dependency versions before the course; no paid services are required.

Detailed Course Outline

From JavaScript to TypeScript

  • Static checking and JavaScript runtime behavior
  • Installing the compiler and inspecting emitted JavaScript
  • Project structure, tsconfig, and strict mode
  • Reading compiler diagnostics

Types and Inference

  • Primitive, array, tuple, and object types
  • Type inference and annotations
  • Optional properties and readonly data
  • Choosing unknown rather than unconstrained any

Functions and Object Contracts

  • Parameter and return types
  • Interfaces and type aliases
  • Function types and overloads
  • Structural compatibility and excess-property checks

Unions and Narrowing

  • Literal types and discriminated unions
  • Null and undefined handling
  • Control-flow narrowing and type guards
  • Exhaustive handling with never

Generics and Reusable Types

  • Generic functions and constraints
  • keyof, indexed access, and mapped types
  • Common utility types
  • Keeping reusable types readable

Modules and Application Boundaries

  • Imports, exports, and declaration files
  • Module resolution and compiler targets
  • Typing third-party packages
  • Separating static types from runtime input validation

Asynchronous Code and Testing

  • Typed promises and asynchronous results
  • Modeling success and failure states
  • Unit tests and type-checking in CI
  • Debugging with source maps

JavaScript Migration

  • Introducing checks one module at a time
  • Working with JavaScript files and JSDoc
  • Replacing unsafe assertions and suppressions
  • Reviewing dependency and build compatibility

Practical Exercise

  • Implement a typed client for a supplied local API
  • Reject malformed input and handle every response variant
  • Refactor one JavaScript module without changing its behavior
  • Run the compiler and tests and document the remaining runtime checks

How we train

Online training for TypeScript

  • Instructor-led live cohorts
  • Self-paced learning with expert coaches
  • 24x7 cloud labs with end-to-end examples

All sessions are 100% hands-on. Labs and activities are derived from real-world work our engineers deliver.

Classroom training

Available for corporate teams in:

  • Bengaluru
  • Chennai
  • Hyderabad
  • Mumbai
  • Delhi/Gurgaon/NCR
  • Pune

Note: Classroom training is for corporate clients only.

Self-paced hands-on sessions are delivered via VirtualCoach.

Related Technologies