0Pricing
TypeScript Academy · Lesson

Module Augmentation

Understand how to extend or modify existing modules and libraries to better suit your project’s needs.

1

Introduction to Module Augmentation

Module augmentation allows you to extend or modify existing modules, making it possible to add custom properties or methods to libraries or modules in TypeScript.

This is especially useful when working with third-party libraries that need additional functionality or custom types.

Module Augmentation — illustration 1

2

What is Module Augmentation?

Module augmentation involves reopening an existing module and adding or modifying its types or functionality using the declare module syntax.

All lessons in this course

  1. Strict Null Checking
  2. Dynamic Type Creation
  3. Module Augmentation
← Back to TypeScript Academy