In my eyes, we can put type declaration in any typescript file ( such as '.d.ts', '.ts', '.tsx' ).
But I found that almost every npm package's type declaration file is .d.ts file.
Is this necessary?
My real world scene is that I just want my npm package been used by some typescript project, so I publish my package without compile (all .ts files)
I'm not sure is there any problem?