Are typescript .d.ts files strictly for types? In other words no constants or actual function implementations should exist in these files?
Asked
Active
Viewed 423 times
0
-
1[yes](https://basarat.gitbooks.io/typescript/docs/types/ambient/d.ts.html) – Rico Kahler Apr 14 '17 at 01:30
-
`d.ts` files are only for types. Actual constants and function implementations will be inside your `js` file if types are for your JavaScript code. – Hardik Modha Apr 14 '17 at 01:32
1 Answers
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