I am currently working on a TypeScript project and contemplating the possibility of publishing it as an NPM package in the future.
Currently, I have the "declaration": true
setting in my tsconfig.json
, which is causing some issues that are irrelevant to this discussion. When I change it to false
, everything works as desired.
The declaration
flag generates d.ts
files when set to true. However, based on insights from a post titled About "*.d.ts" in TypeScript, it seems that this feature is more useful for projects transitioning from JavaScript to TypeScript. So, why would one set this setting to true
in a project that is purely TypeScript? Is it safe to keep it as false
?