Generate Typescript.d.ts file with original jsdoc comments?
Context: Typescript 1.5 Beta Webstorm 10
I am currently developing two separate projects in TS, one library and one project that will use this library.
When I code inside a library project the written jsdoc is perfectly understood by Webstorm and CTRL + Q displays it correctly.
Then I will compile the library (one big output file), generate a .d.ts file in the path and try to use it in another project: there is no more documentation when I call CTRL + Q.
After researching, I see that the JSDOC is still present in the generated javascript, but it is not in the .d.ts file - so Webstorm thinks it is not there.
So my question is, how can I specify the generation time of the .d.ts so that I would like my jsdoc to be included in it? Just spent a few hours on the net running in circles ...
- edit: tsconfig file -
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"noImplicitAny": false,
"removeComments": false,
"declaration":true,
"noLib": false,
"out": "./dist/myLib.es5.js",
"sourceMap": true
}
}
== EDIT FINAL ==
Ok, the documentation finally showed up in .d.ts ... Compiler error or maybe chair-keyboard ...
So this should work if "removeComments" is set to false!
source to share