Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/solid/src/render/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ export type VoidComponent<P extends Record<string, any> = {}> = Component<VoidPr

/**
* Extend props to allow an optional `children` prop with the usual
* type in JSX, `JSX.Element` (which allows elements, arrays, functions, etc.).
* type in JSX, `JSX.Element` (which allows elements, arrays, strings, etc.).
* Use this for components that you want to accept children.
*/
export type ParentProps<P extends Record<string, any> = {}> = P & { children?: JSX.Element };
/**
* `ParentComponent` allows an optional `children` prop with the usual
* type in JSX, `JSX.Element` (which allows elements, arrays, functions, etc.).
* type in JSX, `JSX.Element` (which allows elements, arrays, strings, etc.).
* Use this for components that you want to accept children.
*/
export type ParentComponent<P extends Record<string, any> = {}> = Component<ParentProps<P>>;
Expand Down
Loading