Support of "nullable types" or optional paramaters ({?number}, {string} [myParam], etc)
See original GitHub issueHi,
First things first: thanks for this lib. It works beautifully, even if still “experimental”.
I started using it to get autocompletion from VSCode intellisense accross my pure javascript object services/controllers (AngularJS app). I recently implemented Flowtype in this same projet and noticed that I could simply use the generated tsd
file as a flow-typed definition. Which is quite a good thing, as the flowtype parser/checker use it to operate type-checking accross all my documented code (it was not possible, by default, with pure javascript object services or controllers).
I’m having an issue, though, with nullable types, like:
/**
* @param {?number} eventValue Value attached to the target event (might be null).
*/
which are converted (in the tsd file) to
/**
* @param {number} eventValue Value attached to the target event (might be null).
*/
Is there anything I missed about the proper way to use the lib? May I do a PR if I create a clean fix for this?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (4 by maintainers)
fixed
sure, I create an issue in dts-dom https://github.com/RyanCavanaugh/dts-dom/issues/27