Skip to content

Commit

Permalink
fix: TS 4.4 typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Sep 8, 2021
1 parent f8c3880 commit bfc1851
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/react/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -208,7 +208,7 @@ export default interface Stitches<
// Strings, React Components, and Functions can be skipped over
Composers[K] extends string | React.ComponentType<any> | Util.Function
? Composers[K]
: RemoveIndex<CSS> & {
: RemoveIndex<CSS> & {
/** The **variants** property lets you set a subclass of styles based on a key-value pair.
*
* [Read Documentation](https://stitches.dev/docs/variants)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bfc1851

Please sign in to comment.