From 5f3210f69ec9da2d8340a8346d89dacd5bf6db70 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Sat, 13 May 2023 19:39:16 +0800 Subject: [PATCH] =?UTF-8?q?types:=20=E6=B7=BB=E5=8A=A0=20`Exclusive`=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=BA=92=E6=96=A5=E8=AF=AD=E6=B3=95=E7=B3=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index b6b4518ec..404601a3e 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -41,6 +41,10 @@ type DeepPartial = { [P in keyof T]?: DeepPartial; }; +type Without = { [P in Exclude]?: never }; + +type Exclusive = (Without & U) | (Without & T); + type TimeoutHandle = ReturnType; type IntervalHandle = ReturnType;