Skip to content

Commit a505a37

Browse files
committed
fix(polymorphic): get style prop from main component
1 parent ed8ea58 commit a505a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/styl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ interface Polymorphic<
6565
<As extends ComponentType<any> = IntrinsicElement>(
6666
props: As extends JSXElementConstructor<infer AsProps>
6767
? Omit<DefaultProps, 'style'> &
68-
OwnProps & { ref?: As } & { as?: As } & AsProps
68+
Omit<OwnProps, 'style'> & { ref?: As } & { as?: As } & AsProps
6969
: never
7070
): ReactElement | null
7171
}

0 commit comments

Comments
 (0)