From 67c472f5e096ffaf51c57f047de438678c118e52 Mon Sep 17 00:00:00 2001 From: cAttte <26514199+cAttte@users.noreply.github.com> Date: Thu, 4 Mar 2021 19:12:34 -0300 Subject: [PATCH] remove separate mw.Map#get() overload with selection array and , as it can't be used in the return value (so, we can't do 'object in which key is keyof V and value is either V[key] or F') --- mw/Map.d.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mw/Map.d.ts b/mw/Map.d.ts index 34b75b7..6806457 100644 --- a/mw/Map.d.ts +++ b/mw/Map.d.ts @@ -22,12 +22,9 @@ declare global { * @see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Map-method-get */ get(): V; - get, F>( - selection: S, - fallback?: F - ): Pick ? SS : never | F>; get>( - selection: S + selection: S, + fallback?: any ): Pick ? SS : never>; get(selection: S): V[S]; get(selection: S, fallback?: F): V[S] | F;