diff --git a/packages/solid/src/render/component.ts b/packages/solid/src/render/component.ts index 43b7c5400..8647611ec 100644 --- a/packages/solid/src/render/component.ts +++ b/packages/solid/src/render/component.ts @@ -15,8 +15,12 @@ export function enableHydration() { hydrationEnabled = true; } -export type PropsWithChildren
= P & { children?: JSX.Element }; -export type Component
= (props: PropsWithChildren
) => JSX.Element; +export type Props
= Readonly
; +export type PropsWithChildren
= + Props
& { readonly children?: C }; +export type Component
= (props: Props
) => JSX.Element; +export type ComponentWithChildren
= + (props: PropsWithChildren
) => JSX.Element;
/**
* Takes the props of the passed component and returns its type
*
@@ -30,6 +34,12 @@ export type ComponentProps