diff --git a/types/baseui/baseui-tests.tsx b/types/baseui/baseui-tests.tsx index 0d46c83406..032c2b0221 100644 --- a/types/baseui/baseui-tests.tsx +++ b/types/baseui/baseui-tests.tsx @@ -110,6 +110,17 @@ const NewStyledProgressSteps = styled; ; // $ExpectError + ({ height: $theme.sizing && $theme.sizing.scale1000 }) } }} +/>; + ({ height: $didImageFailToLoad ? '0' : '10px' }) } }} +/>; + ({ height: children ? '10px' : '0'})} }} />; + ({ height: $theme.sizing && $theme.sizing.notasize })} }} />; // $ExpectError + ({}) }}} />; // $ExpectError // Block ; diff --git a/types/baseui/overrides.d.ts b/types/baseui/overrides.d.ts index 066d8f3cbc..752cb4b714 100644 --- a/types/baseui/overrides.d.ts +++ b/types/baseui/overrides.d.ts @@ -1,9 +1,9 @@ -type StyleOverride = object | ((props: any) => object); +type StyleOverride = object | ((props: { $theme: Theme } & React.PropsWithChildren) => object); interface OverrideObject { component?: React.ComponentType; props?: object; - style?: StyleOverride; + style?: StyleOverride; } type Override = OverrideObject | React.ComponentType;