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

Commit

Permalink
Merge pull request #478 from gluestack/fix/negative-token-type
Browse files Browse the repository at this point in the history
Fix/negative token type
  • Loading branch information
ankit-tailor authored Oct 16, 2023
2 parents 86af071 + 6d35eba commit 6331dee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/StyledProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const StyledProvider: React.FC<{
colorMode?: COLORMODES;
children?: React.ReactNode;
globalStyles?: any;
_experimentalNestedProvider: boolean;
_experimentalNestedProvider?: boolean;
}> = ({
config,
colorMode,
Expand Down
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 6331dee

Please sign in to comment.