Skip to content

Commit

Permalink
fix: typing (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mym0404 authored Mar 14, 2024
2 parents 3d28b90 + 449ebb2 commit 6dced0d
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 6dced0d

Please sign in to comment.