Skip to content

Commit

Permalink
fix: typing issue with inline tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Aug 9, 2021
1 parent 574e4db commit a4ee07c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/react/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default interface Stitches<
}
: unknown
}
& KnownCSS
& CSS
)
: never
)
Expand Down Expand Up @@ -175,7 +175,6 @@ export default interface Stitches<
[K2 in keyof Composers[K]]: Composers[K][K2]
}
? (
& KnownCSS
& {
/** The **variants** property sets variants.
*
Expand Down Expand Up @@ -212,7 +211,7 @@ export default interface Stitches<
Prelude extends keyof KnownCSS | 'compoundVariants' | 'defaultVariants' | 'variants'
? unknown
: Composers[K][Prelude] extends {}
? CSS
? CSS[Prelude]
: boolean | number | string
}
)
Expand Down

0 comments on commit a4ee07c

Please sign in to comment.