From 89835f7f00a5b7dfcf57c34310eb53ce41428e60 Mon Sep 17 00:00:00 2001 From: goodmice Date: Thu, 6 Oct 2022 20:27:34 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=82=D0=B8=D0=BF=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=83=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=82=D0=B8=D0=BF?= =?UTF-8?q?=D0=B0=20=D1=8D=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=81=D1=81=D0=B8=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/types/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/types/index.ts b/src/utils/types/index.ts index c619b26..6e374df 100644 --- a/src/utils/types/index.ts +++ b/src/utils/types/index.ts @@ -9,3 +9,5 @@ export type OmitExtends = T & Omit export type ArgumentTypes = F extends (...args: infer A) => any ? A : never + +export type ArrayElement = ArrType extends readonly (infer ElementType)[] ? ElementType : never