From 27796cb1bd8eaeac4e9f2b880a86bc1d09c78e93 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Thu, 23 Sep 2021 09:16:58 -0400 Subject: [PATCH] Fix issue with compoundVariants typing --- packages/core/types/stitches.d.ts | 2 +- packages/react/types/stitches.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/types/stitches.d.ts b/packages/core/types/stitches.d.ts index 70d78656..6815bb8e 100644 --- a/packages/core/types/stitches.d.ts +++ b/packages/core/types/stitches.d.ts @@ -164,7 +164,7 @@ export default interface Stitches< 'variants' extends keyof Composers[K] ? { [Name in keyof Composers[K]['variants']]?: Util.Widen | Util.String - } & Util.WideObject + } : Util.WideObject ) & { diff --git a/packages/react/types/stitches.d.ts b/packages/react/types/stitches.d.ts index 4323166e..f29eec36 100644 --- a/packages/react/types/stitches.d.ts +++ b/packages/react/types/stitches.d.ts @@ -166,7 +166,7 @@ export default interface Stitches< 'variants' extends keyof Composers[K] ? { [Name in keyof Composers[K]['variants']]?: Util.Widen | Util.String - } & Util.WideObject + } : Util.WideObject ) & { @@ -236,7 +236,7 @@ export default interface Stitches< 'variants' extends keyof Composers[K] ? { [Name in keyof Composers[K]['variants']]?: Util.Widen | Util.String - } & Util.WideObject + } : Util.WideObject ) & {