From 8489f69a46ca8934a988fa07dea596f4538d6ef1 Mon Sep 17 00:00:00 2001 From: Aral Roca Date: Mon, 17 Jul 2023 19:53:48 +0200 Subject: [PATCH] fix to satisfy the constraint 'string' --- src/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 98ebc1f..d1dc7eb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -187,11 +187,13 @@ type Join = S1 extends string // @ts-ignore export type Paths = RemovePlural< + // @ts-ignore { - [K in keyof T]: T[K] extends Record + // @ts-ignore + [K in Extract]: T[K] extends Record ? Join> : K - }[keyof T] + }[Extract] > // TODO: Remove this in future versions > 2.0.0