mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-02 19:26:24 +00:00
97a5d335d7
This is documented at http://usejsdoc.org/tags-type.html, but not in many other places, especially not in the JSDuck documentation. The {!…} syntax means "can not be null". This is the default anyway. The {?…} syntax means nullable. In a few situation is was used when a parameter can be undefined. I decided to remove it everywhere and replace it with {…|null} when appropriate, because this is much more explicit. Less syntax to remember. Note I'm intentionally not using the […] syntax when a parameter is followed by non-optional parameters. Actually skipping a parameter in such a situation would mess the parameter order up. Having optional parameters not at the end is sometimes used as a feature in JavaScript code, but not in this codebase, as far as I can see. Change-Id: Ie370cfe08c32d1af5b0341951bed044fc3511c57 |
||
---|---|---|
.. | ||
model.js |