Skip to content

Commit

Permalink
Fix issue with compoundVariants typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Sep 23, 2021
1 parent 3c9d2e0 commit 27796cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 @@ -164,7 +164,7 @@ export default interface Stitches<
'variants' extends keyof Composers[K]
? {
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String
} & Util.WideObject
}
: Util.WideObject
)
& {
Expand Down
4 changes: 2 additions & 2 deletions packages/react/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default interface Stitches<
'variants' extends keyof Composers[K]
? {
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String
} & Util.WideObject
}
: Util.WideObject
)
& {
Expand Down Expand Up @@ -236,7 +236,7 @@ export default interface Stitches<
'variants' extends keyof Composers[K]
? {
[Name in keyof Composers[K]['variants']]?: Util.Widen<keyof Composers[K]['variants'][Name]> | Util.String
} & Util.WideObject
}
: Util.WideObject
)
& {
Expand Down

0 comments on commit 27796cb

Please sign in to comment.