Skip to content

Commit

Permalink
878: Fixed issue with ThemeTokens typing (stitchesjs#893)
Browse files Browse the repository at this point in the history
* fix(878): Fixed issue with ThemeTokens typing.

* fix(878): Applied PR review comments.
  • Loading branch information
LucasUnplugged authored Jan 3, 2022
1 parent c48a653 commit cb414be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -204,7 +204,7 @@ type ThemeTokens<Values, Prefix> = {
[Scale in keyof Values]: {
[Token in keyof Values[Scale]]: ThemeUtil.Token<
Extract<Token, number | string>,
Values[Scale][Token],
Values[Scale][Token] & (string | number),
Extract<Scale, string | void>,
Extract<Prefix, string | void>
>
Expand Down
2 changes: 1 addition & 1 deletion packages/react/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ type ThemeTokens<Values, Prefix> = {
[Scale in keyof Values]: {
[Token in keyof Values[Scale]]: ThemeUtil.Token<
Extract<Token, number | string>,
Values[Scale][Token],
Values[Scale][Token] & (string | number),
Extract<Scale, string | void>,
Extract<Prefix, string | void>
>
Expand Down

0 comments on commit cb414be

Please sign in to comment.