Skip to content

Commit

Permalink
Merge pull request #2129 from gluestack/fix/theme-typings
Browse files Browse the repository at this point in the history
fix: theme typings
  • Loading branch information
ankit-tailor authored May 7, 2024
2 parents b2ace72 + ae67ae1 commit 9f6404d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/styled/react/src/styled.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ export function verboseStyled<
ComCon
>(
Component: P,
theme: Partial<IVerbosedTheme<Variants, P>>,
theme: Partial<IVerbosedTheme<Variants, React.ComponentProps<P>>>,
componentStyleConfig: IComponentStyleConfig<ComCon> = {},
ExtendedConfig?: any,
BUILD_TIME_PARAMS?: {
Expand Down Expand Up @@ -2329,7 +2329,7 @@ export function verboseStyled<

export function styled<P extends React.ComponentType<any>, Variants, ComCon>(
Component: P,
theme: ITheme<Variants, P> = {},
theme: ITheme<Variants, React.ComponentProps<P>> = {},
componentStyleConfig?: IComponentStyleConfig<ComCon>,
ExtendedConfig?: ExtendedConfigType,
BUILD_TIME_PARAMS?: {
Expand Down

0 comments on commit 9f6404d

Please sign in to comment.