Skip to content

Commit 12b8ec8

Browse files
authored
fix: fix type errors on factory.ts (#3563)
1 parent 388e64c commit 12b8ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/components/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const withAsChild = (Component: React.ElementType) => {
5858
return null
5959
}
6060

61-
const onlyChild: React.ReactNode = Children.only(children)
61+
const onlyChild: React.ReactElement<Record<string, unknown>> = Children.only(children)
6262

6363
const childRef = getRef(onlyChild)
6464

0 commit comments

Comments
 (0)