From ee0e2eae83ef0bd97510c2441ee8ae2cad72e8d6 Mon Sep 17 00:00:00 2001 From: ankit-tailor Date: Mon, 16 Oct 2023 12:53:40 +0530 Subject: [PATCH] fix: sizes scale should not have negative tokens --- packages/react/src/types.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/react/src/types.ts b/packages/react/src/types.ts index 5b80e98f..daf8e4b9 100644 --- a/packages/react/src/types.ts +++ b/packages/react/src/types.ts @@ -888,14 +888,12 @@ export type ExtendRNStyle = GenericComponentStyles[key]; type WithSizeNegativeValue = keyof Tokens extends 'sizes' - ? WithNegativeValue< - //@ts-expect-error - | StringifyToken + ? //@ts-expect-error + | StringifyToken //@ts-expect-error | StringifyToken - > : //@ts-expect-error - WithNegativeValue>; + StringifyToken; export type TokenizedRNStyleProps< GenericComponentStyles,