Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mym0404 committed Mar 14, 2024
1 parent c61adf7 commit 449ebb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/@types/SxProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ type ThemedSizeTokenProps = {
maxH: Token<'sizes'>; // maxHeight
};

export type SxProps = Partial<
{ sx?: Omit<SxProps, 'sx'> } & {
type BaseSxProps = Partial<
{
flex: ViewStyle['flex'];
alignItems: ViewStyle['alignItems'];
alignContent: ViewStyle['alignContent'];
Expand Down Expand Up @@ -180,3 +180,5 @@ export type SxProps = Partial<
ThemedSizeTokenProps &
ThemedColorTokenProps
>;

export type SxProps = BaseSxProps & { sx?: BaseSxProps };

0 comments on commit 449ebb2

Please sign in to comment.