Skip to content

Commit 28a937c

Browse files
authored
fix: ComponentProps type (#4634)
1 parent f68aebb commit 28a937c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index-5.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export type ComponentProps<
8484
? P
8585
: C extends keyof JSXInternal.IntrinsicElements
8686
? JSXInternal.IntrinsicElements[C]
87-
: never;
87+
: {};
8888

8989
export interface FunctionComponent<P = {}> {
9090
(props: RenderableProps<P>, context?: any): VNode | null;

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export type ComponentProps<
8484
? P
8585
: C extends keyof JSXInternal.IntrinsicElements
8686
? JSXInternal.IntrinsicElements[C]
87-
: never;
87+
: {};
8888

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

0 commit comments

Comments
 (0)