diff --git a/packages/tools/with-default-props.tsx b/packages/tools/with-default-props.tsx index 316b9fb..52d7b02 100644 --- a/packages/tools/with-default-props.tsx +++ b/packages/tools/with-default-props.tsx @@ -1,8 +1,8 @@ // packages -import React, { ComponentType } from 'react'; +import React, { ComponentType, PropsWithChildren } from 'react'; export default function withDefaultProps
(defaultProps: P) { - return (Component: ComponentType
) => (props: Partial
) => (
-
) => (
+ props: PropsWithChildren