I found a lot of literature on what the declaration .d.ts files are, but not on how to implement them. I understood that they can be auto-generated with the typescript compiler.
So my questions are:
when should I write the
.d.tsfile my own, and when should I autogenerate them?what happen if I write my own
.d.tsfiles and then also autogenerate them with the compiler?should I write a
.d.tsfile for every.tsfile or only to what I will expose as API of my library?
Thank you