diff --git a/packages/core/types/stitches.d.ts b/packages/core/types/stitches.d.ts index d9c1bb20..e20cd1c2 100644 --- a/packages/core/types/stitches.d.ts +++ b/packages/core/types/stitches.d.ts @@ -98,11 +98,9 @@ export default interface Stitches< selector: string } & ( - Argument0 extends {} - ? ThemeTokens - : Argument1 extends {} + Argument0 extends string ? ThemeTokens - : {} + : ThemeTokens ) } theme: string & { diff --git a/packages/react/types/stitches.d.ts b/packages/react/types/stitches.d.ts index 99dbf4ed..fec34410 100644 --- a/packages/react/types/stitches.d.ts +++ b/packages/react/types/stitches.d.ts @@ -98,11 +98,9 @@ export default interface Stitches< selector: string } & ( - Argument0 extends {} - ? ThemeTokens - : Argument1 extends {} + Argument0 extends string ? ThemeTokens - : {} + : ThemeTokens ) } theme: string & {