What is an ambient declaration in TypeScript?

TypeScript Associate Hard

TypeScript Associate — Hard

What is an ambient declaration in TypeScript?

Key points

  • Ambient declarations use the 'declare' keyword
  • They describe existing JavaScript values
  • They do not emit any code during compilation
  • Helpful for integrating TypeScript with existing JavaScript libraries

Ready to go further?

Related questions