0

Are typescript .d.ts files strictly for types? In other words no constants or actual function implementations should exist in these files?

Ole
  • 41,793
  • 59
  • 191
  • 359

1 Answers1

1

Yes. *.d.ts files are places to hold ambient declarations. i.e. type definition without actual code that describes the runtime environment.

unional
  • 14,651
  • 5
  • 32
  • 56