From 3b0c0ac9bd67710263a2d1763279c2d6eb8c79e8 Mon Sep 17 00:00:00 2001 From: yuntian001 Date: Tue, 6 Jun 2023 16:07:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8A=A0=E4=B8=8AKeyOfMap=E3=80=81Valu?= =?UTF-8?q?eOfMap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/global.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/global.d.ts b/types/global.d.ts index 2841ff88..dc01c452 100644 --- a/types/global.d.ts +++ b/types/global.d.ts @@ -27,4 +27,8 @@ declare global { keyof InstanceType['$props'] >]: InstanceType['$props'][K]; }; + + type KeyOfMap = Parameters[0]; + + type ValueOfMap = ReturnType; }