Ole
Ole

Reputation: 46900

Are .d.ts files strictly for type implementations?

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

Answers (1)

unional
unional

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

Related Questions