I'm a little confused as to which JSDoc describes a constructor function for a class, and if PHPStorm understands either.
When I research which JSDoc to use I keep coming across two versions. There is @constructs
and @constructor
.
- Do these two tags mean the same thing?
- Which tag should I use in my JSDoc?
- Is there a benefit in PHPStorm for code complete or intellisense using either?
Here are some references.
https://code.google.com/p/jsdoc-toolkit/wiki/TagConstructor
https://code.google.com/p/jsdoc-toolkit/wiki/TagConstructs
Now I understand that @constructs
should be used with @lends
but why?