We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined
While converting https://en.wikipedia.org/wiki/User:BrandonXLF/QuickEdit.js to TypeScript, I came across this:
minor: minor.isSelected() ? true : undefined, notminor: minor.isSelected() ? undefined : true,
This is currently disallowed by
types-mediawiki/mw/Api.d.ts
Line 17 in 3796925
But mediawiki.api just removes all undefined paramters (just as false ones) in https://github.com/wikimedia/mediawiki/blob/d84806614aed6d99f7e6a64243b8c4f8812a70c8/resources/src/mediawiki.api/index.js#L191.
mediawiki.api
false
I have to admit, I use "syntactic sugar" like this in my code as well. Should this be perhaps allowed?
The text was updated successfully, but these errors were encountered:
Makes sense to me.
Sorry, something went wrong.
No branches or pull requests
While converting https://en.wikipedia.org/wiki/User:BrandonXLF/QuickEdit.js to TypeScript, I came across this:
This is currently disallowed by
types-mediawiki/mw/Api.d.ts
Line 17 in 3796925
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?
The text was updated successfully, but these errors were encountered: