From 449ebb22a8fc12964ee61f8070b50df9f160e377 Mon Sep 17 00:00:00 2001 From: mym0404 Date: Thu, 14 Mar 2024 16:21:04 +0900 Subject: [PATCH] fix: typing --- src/@types/SxProps.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/@types/SxProps.ts b/src/@types/SxProps.ts index c32ffd91..9ea41b4c 100644 --- a/src/@types/SxProps.ts +++ b/src/@types/SxProps.ts @@ -150,8 +150,8 @@ type ThemedSizeTokenProps = { maxH: Token<'sizes'>; // maxHeight }; -export type SxProps = Partial< - { sx?: Omit } & { +type BaseSxProps = Partial< + { flex: ViewStyle['flex']; alignItems: ViewStyle['alignItems']; alignContent: ViewStyle['alignContent']; @@ -180,3 +180,5 @@ export type SxProps = Partial< ThemedSizeTokenProps & ThemedColorTokenProps >; + +export type SxProps = BaseSxProps & { sx?: BaseSxProps };