Skip to content

Commit

Permalink
fix: ComponentProps type (#4634)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Jan 17, 2025
1 parent f68aebb commit 28a937c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index-5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type ComponentProps<
? P
: C extends keyof JSXInternal.IntrinsicElements
? JSXInternal.IntrinsicElements[C]
: never;
: {};

export interface FunctionComponent<P = {}> {
(props: RenderableProps<P>, context?: any): VNode | null;
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export type ComponentProps<
? P
: C extends keyof JSXInternal.IntrinsicElements
? JSXInternal.IntrinsicElements[C]
: never;
: {};

export interface FunctionComponent<P = {}> {
(props: RenderableProps<P>, context?: any): ComponentChildren;
Expand Down

0 comments on commit 28a937c

Please sign in to comment.