Skip to content

Commit

Permalink
Merge 38d5157 into 47ad259
Browse files Browse the repository at this point in the history
  • Loading branch information
jakst committed Jul 2, 2021
2 parents 47ad259 + 38d5157 commit 070991c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/solid/src/render/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { sharedConfig, nextHydrateContext, setHydrateContext } from "./hydration";
import type { JSX } from "../jsx";

export type PropsWithChildren<P> = P & { children?: JSX.Element };
export type PropsWithChildren<P = {}> = P & { children?: JSX.Element };
export type Component<P = {}> = (props: PropsWithChildren<P>) => JSX.Element;
/**
* Takes the props of the passed component and returns its type
Expand Down

0 comments on commit 070991c

Please sign in to comment.