From 142f9f5d47920c88b1210872c37ea3aefb6ec1f9 Mon Sep 17 00:00:00 2001 From: cAttte <26514199+cAttte@users.noreply.github.com> Date: Thu, 4 Mar 2021 14:29:04 -0300 Subject: [PATCH] add overloads without 'fallback' to mw.Map this parameter would cause the return value to be 'unknown' if it was not provided --- mw/Map.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mw/Map.d.ts b/mw/Map.d.ts index 62e7f3b..34b75b7 100644 --- a/mw/Map.d.ts +++ b/mw/Map.d.ts @@ -26,6 +26,10 @@ declare global { selection: S, fallback?: F ): Pick ? SS : never | F>; + get>( + selection: S + ): Pick ? SS : never>; + get(selection: S): V[S]; get(selection: S, fallback?: F): V[S] | F; /**