Reputation: 46900
Are typescript .d.ts files strictly for types? In other words no constants or actual function implementations should exist in these files?
Upvotes: 0
Views: 525
Reputation: 15589
Yes. *.d.ts
files are places to hold ambient declarations. i.e. type definition without actual code that describes the runtime environment.
Upvotes: 1