Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit bfc1851

Browse files
committed
fix: TS 4.4 typing
1 parent f8c3880 commit bfc1851

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/core/types/stitches.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export default interface Stitches<
173173
}
174174
: Util.WideObject
175175
)
176-
} & {
176+
} & CSS & {
177177
[K2 in keyof Composers[K]]: K2 extends 'compoundVariants' | 'defaultVariants' | 'variants'
178178
? unknown
179179
: K2 extends keyof CSS

packages/react/types/stitches.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export default interface Stitches<
175175
}
176176
: Util.WideObject
177177
)
178-
} & {
178+
} & CSS & {
179179
[K2 in keyof Composers[K]]: K2 extends 'compoundVariants' | 'defaultVariants' | 'variants'
180180
? unknown
181181
: K2 extends keyof CSS
@@ -208,7 +208,7 @@ export default interface Stitches<
208208
// Strings, React Components, and Functions can be skipped over
209209
Composers[K] extends string | React.ComponentType<any> | Util.Function
210210
? Composers[K]
211-
: RemoveIndex<CSS> & {
211+
: RemoveIndex<CSS> & {
212212
/** The **variants** property lets you set a subclass of styles based on a key-value pair.
213213
*
214214
* [Read Documentation](https://stitches.dev/docs/variants)
@@ -245,7 +245,7 @@ export default interface Stitches<
245245
}
246246
: Util.WideObject
247247
)
248-
} & {
248+
} & CSS & {
249249
[K2 in keyof Composers[K]]: K2 extends 'compoundVariants' | 'defaultVariants' | 'variants'
250250
? unknown
251251
: K2 extends keyof CSS

0 commit comments

Comments
 (0)