From b73665ddfb16de4020250140133a154edcf292bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20LES=C3=89N=C3=89CHAL?= Date: Wed, 24 Apr 2024 09:53:45 +0200 Subject: [PATCH 01/15] 1.42 & doc fixes - add `$.cookie`, `$.removeCookie`, `mw.loader.addSource`, `mw.templates`, `mw.user.getFirstRegistration`, `mw.util.isInfinity` - `new mw.Api().loadMessagesIfMissing` now accepts a single `string` message key as argument - `mw.loader.impl`/`implement`/`register`/`state` are now annotated private - `mw.Map` is no longer annotated private - `body` argument of `new mw.Rest().post` is now optional - various small jsdoc fixes, either from 1.42 updates or oversights from previous PR --- jquery/confirmable.d.ts | 45 ++-- jquery/cookie.d.ts | 42 ++++ jquery/footHovzer.d.ts | 4 +- jquery/highlightText.d.ts | 9 + jquery/lengthLimit.d.ts | 9 +- jquery/makeCollapsible.d.ts | 7 + jquery/spinner.d.ts | 7 +- jquery/suggestions.d.ts | 10 +- jquery/tablesorter.d.ts | 6 +- jquery/textSelection.d.ts | 18 ++ jquery/updateTooltipAccessKeys.d.ts | 9 + mw/Api.d.ts | 299 ++++++++++++++++----------- mw/ForeignApi.d.ts | 37 ++-- mw/ForeignRest.d.ts | 46 ++--- mw/Map.d.ts | 13 +- mw/Rest.d.ts | 31 +-- mw/Title.d.ts | 175 ++++++++-------- mw/Uri.d.ts | 74 +++---- mw/cldr.d.ts | 1 + mw/confirmCloseWindow.d.ts | 33 +-- mw/cookie.d.ts | 81 +++++--- mw/deflate.d.ts | 6 +- mw/errorLogger.d.ts | 22 ++ mw/experiments.d.ts | 1 - mw/global.d.ts | 4 + mw/hook.d.ts | 82 ++++---- mw/html.d.ts | 19 +- mw/index.d.ts | 48 +++-- mw/inspect.d.ts | 7 +- mw/language.d.ts | 10 +- mw/loader.d.ts | 310 ++++++++++++++++------------ mw/log.d.ts | 28 +-- mw/message.d.ts | 43 ++-- mw/notification.d.ts | 124 +++++------ mw/searchSuggest.d.ts | 61 ++++-- mw/storage.d.ts | 56 ++--- mw/template.d.ts | 2 +- mw/user.d.ts | 74 ++++--- mw/util.d.ts | 72 ++++--- 39 files changed, 1156 insertions(+), 769 deletions(-) create mode 100644 jquery/cookie.d.ts create mode 100644 mw/errorLogger.d.ts diff --git a/jquery/confirmable.d.ts b/jquery/confirmable.d.ts index bc44d43..eb003db 100644 --- a/jquery/confirmable.d.ts +++ b/jquery/confirmable.d.ts @@ -1,25 +1,34 @@ declare global { interface JQuery { + /** + * Enable inline confirmation for given clickable element (like `` or `