From 2c0c7c21a0ce782c5b60d62962e9674c3dfb8dc5 Mon Sep 17 00:00:00 2001 From: Suraj Date: Mon, 18 Sep 2023 19:36:30 +0530 Subject: [PATCH] fix: extend component typing --- packages/react/src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/src/types.ts b/packages/react/src/types.ts index e1af3c537..72a55e834 100644 --- a/packages/react/src/types.ts +++ b/packages/react/src/types.ts @@ -193,7 +193,9 @@ export type GlobalVariantSx = Partial< RNStyledProps & GlobalVariantAliasesProps & { [k in keyof Variants]?: keyof Variants[k]; - }; + } & { + as?: any; + } & Partial<{ [Key: string]: any }>; } & { [Key in `_${COLORMODES}`]?: GlobalVariantSx< Aliases,