mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-15 11:46:55 +00:00
ab7a5808ef
Although Popups only uses JSDocs at this time which seemingly doesn't care about casing[1], we should endeavor to use the proper return types. This patch lowercases typing to indicate primitive / boxed type as appropriate.[2] As a special case, function types are uppercased for compatibility with TypeScript type checking. Lastly, JQuery types are of type "JQuery". The global JQuery object's identifier is "jQuery". This patch uppercases J's where appropriate. [0] https://github.com/jsdoc3/jsdoc/issues/1046#issuecomment-126477791 [1] find src tests -iname \*.js| xargs -rd\\n sed -ri ' s%\{\s*([?!])?(number|string|boolean|null|undefined)%{\1\L\2%gi; s%\{\s*([?!])?(function|object)%{\1\u\2%gi; s%\{\s*([?!])?jquery%{\1JQuery%gi ' Change-Id: I771bdbb69dc978796a331998c0657622ac39c449 |
||
---|---|---|
.. | ||
dist | ||
ext.popups | ||
ext.popups.images |