types/oojs-ui/README.MD
If you are writing JavaScript/TypeScript code for MediaWiki, make sure all relevant ResourceLoader modules are loaded, then use OO.ui globally.
utils.d.ts contains a list of known icon and indicator names. To use them, you must ensure the corresponding modules have been loaded. Please refer to the OOUI documentation or the code comments for more details.
// Error: Type 'NumberInputWidget' is not assignable to type 'TextInputWidget'...
let widget: OO.ui.TextInputWidget = new OO.ui.NumberInputWidget();
// Use type assertion as a fix
let widget: OO.ui.TextInputWidget = new OO.ui.NumberInputWidget() as unknown as OO.ui.TextInputWidget;
OO.ui.mixin.GroupElement (Changes method signatures of OO.EmitterList)OO.ui.CheckboxInputWidget (Inconsistency in change event)OO.ui.NumberInputWidget (Changes method signatures of OO.ui.TextInputWidget)OO.ui.OutlineControlsWidget (Inconsistency in move and remove event)OO.ui.SelectFileInputWidget (Inconsistency in change event, changes method signatures of OO.ui.InputWidget)OO.ui.SelectWidget (Inconsistency in move and remove event)This project uses JSDoc documentations from OOUI which is licensed under the MIT License.
Copyright 2011-2022 OOUI Team and other contributors.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.