Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
fix: sizes scale should not have negative tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-tailor committed Oct 16, 2023
1 parent 86af071 commit ee0e2ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,14 +888,12 @@ export type ExtendRNStyle<GenericComponentStyles, key> =
GenericComponentStyles[key];

type WithSizeNegativeValue<Tokens> = keyof Tokens extends 'sizes'
? WithNegativeValue<
//@ts-expect-error
| StringifyToken<keyof Tokens['sizes']>
? //@ts-expect-error
| StringifyToken<keyof Tokens['sizes']>
//@ts-expect-error
| StringifyToken<keyof Tokens['space']>
>
: //@ts-expect-error
WithNegativeValue<StringifyToken<keyof Tokens['space']>>;
StringifyToken<keyof Tokens['space']>;

export type TokenizedRNStyleProps<
GenericComponentStyles,
Expand Down

0 comments on commit ee0e2ea

Please sign in to comment.