What does TypeScript’s ‘module augmentation’ allow?

TypeScript Associate Hard

TypeScript Associate — Hard

What does TypeScript’s ‘module augmentation’ allow?

Key points

  • 'Module augmentation' extends existing modules
  • 'declare module' syntax is used to add new declarations
  • Helps avoid modifying original module code
  • Useful for adding custom functionality

Ready to go further?

Related questions