What is module augmentation in TypeScript?

TypeScript Professional Hard

TypeScript Professional — Hard

What is module augmentation in TypeScript?

Key points

  • Module augmentation is a powerful feature for enhancing existing modules.
  • It helps avoid directly modifying third-party code.
  • By re-declaring the module, developers can extend its functionality.
  • This approach promotes better code maintainability and reusability.

Ready to go further?

Related questions