diff --git a/packages/core/types/stitches.d.ts b/packages/core/types/stitches.d.ts index 4278a93c..ac67fa53 100644 --- a/packages/core/types/stitches.d.ts +++ b/packages/core/types/stitches.d.ts @@ -173,7 +173,7 @@ export default interface Stitches< } : Util.WideObject ) - } & { + } & CSS & { [K2 in keyof Composers[K]]: K2 extends 'compoundVariants' | 'defaultVariants' | 'variants' ? unknown : K2 extends keyof CSS diff --git a/packages/react/types/stitches.d.ts b/packages/react/types/stitches.d.ts index 50de2192..4f13d00a 100644 --- a/packages/react/types/stitches.d.ts +++ b/packages/react/types/stitches.d.ts @@ -175,7 +175,7 @@ export default interface Stitches< } : Util.WideObject ) - } & { + } & CSS & { [K2 in keyof Composers[K]]: K2 extends 'compoundVariants' | 'defaultVariants' | 'variants' ? unknown : K2 extends keyof CSS @@ -208,7 +208,7 @@ export default interface Stitches< // Strings, React Components, and Functions can be skipped over Composers[K] extends string | React.ComponentType | Util.Function ? Composers[K] - : RemoveIndex & { + : RemoveIndex & { /** The **variants** property lets you set a subclass of styles based on a key-value pair. * * [Read Documentation](https://stitches.dev/docs/variants) @@ -245,7 +245,7 @@ export default interface Stitches< } : Util.WideObject ) - } & { + } & CSS & { [K2 in keyof Composers[K]]: K2 extends 'compoundVariants' | 'defaultVariants' | 'variants' ? unknown : K2 extends keyof CSS