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

Commit

Permalink
fix: passing props typing any
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj authored and Suraj committed Sep 6, 2023
1 parent 5ffe0fe commit 77006dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const Pressable = styled(
{
bg: '$red500',
p: '$2',

// 'bg': '$red600',
// 'w': 100,
// 'h': 100,
Expand Down
21 changes: 11 additions & 10 deletions packages/react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,15 @@ type PassingPropsType<
GenericComponentProps
>,
GlobalVariants
>]?: keyof MergeNested<
VariantType<
Variants,
GenericComponentStyles,
GenericComponentProps
>,
GlobalVariants
>[Key];
>]?:
| keyof MergeNested<
VariantType<
Variants,
GenericComponentStyles,
GenericComponentProps
>,
GlobalVariants
>[Key];
} & { [Key: string]: any }
>;
}
Expand Down Expand Up @@ -389,14 +390,14 @@ export type SxProps<
} & {
[Key in `_${string}`]?: SxProps<
RNStyledProps,
Variants,
{},
GenericComponentProps,
PLATFORM,
MediaQuery
> &
PassingPropsType<
GenericComponentStyles,
Variants,
{},
GenericComponentProps,
MediaQuery
> &
Expand Down

0 comments on commit 77006dd

Please sign in to comment.