Closed jwbth closed 1 week ago
Makes sense to me.
I've pushed the fix, along with a few JSdoc fixes and annotations. The changes are published in pre-release with tag 1.8.1, as I don't really know how npm publishing works.
The changes are published in pre-release with tag 1.8.1, as I don't really know how npm publishing works.
We have an automated workflow that publishes to npm when a release is created on github. I expect it will also trigger if you edit the pre-release to be a normal release.
Well, I suppose putting it as pre-release made it not trigger correctly, it worked well after recreating it, thank you!
While converting https://en.wikipedia.org/wiki/User:BrandonXLF/QuickEdit.js to TypeScript, I came across this:
This is currently disallowed by https://github.com/wikimedia-gadgets/types-mediawiki/blob/37969255e98994a7adc0c7c60ccbbd89dd6dff02/mw/Api.d.ts#L17
But
mediawiki.api
just removes allundefined
paramters (just asfalse
ones) in https://github.com/wikimedia/mediawiki/blob/d84806614aed6d99f7e6a64243b8c4f8812a70c8/resources/src/mediawiki.api/index.js#L191.I have to admit, I use "syntactic sugar" like this in my code as well. Should this be perhaps allowed?