What are *.d.ts files for?
The definition files generated by the TypeScript compiler are indeed mostly a repeat of the code you wrote but with some notable differences: They don’t contain implementation, only declarations They only contain publicly accessible types The use case for these declaration files is for distributing libraries. You can distribute a library without the original TypeScript … Read more