22 createElement ,
33 ReactElement ,
44 ReactNode ,
5- ReactType ,
5+ ElementType ,
66 ReactHTML ,
77 Attributes ,
88} from 'react' ;
@@ -29,7 +29,7 @@ type PropsLike<P> = P & PropsExtensions & Attributes;
2929type Children = string | Array < ReactNode > ;
3030
3131function createElementSpreading < P = any > (
32- type : ReactType < P > | keyof ReactHTML ,
32+ type : ElementType < P > | keyof ReactHTML ,
3333 props : PropsLike < P > | null ,
3434 children : Children ,
3535) : ReactElement < P > {
@@ -41,7 +41,7 @@ function createElementSpreading<P = any>(
4141}
4242
4343function hyperscriptProps < P = any > (
44- type : ReactType < P > | keyof ReactHTML ,
44+ type : ElementType < P > | keyof ReactHTML ,
4545 props : PropsLike < P > ,
4646) : ReactElement < P > {
4747 if ( ! shouldIncorporate ( props ) ) {
@@ -52,14 +52,14 @@ function hyperscriptProps<P = any>(
5252}
5353
5454function hyperscriptChildren < P = any > (
55- type : ReactType < P > | keyof ReactHTML ,
55+ type : ElementType < P > | keyof ReactHTML ,
5656 children : Children ,
5757) : ReactElement < P > {
5858 return createElementSpreading ( type , null , children ) ;
5959}
6060
6161function hyperscriptPropsChildren < P = any > (
62- type : ReactType < P > | keyof ReactHTML ,
62+ type : ElementType < P > | keyof ReactHTML ,
6363 props : PropsLike < P > ,
6464 children : Children ,
6565) : ReactElement < P > {
@@ -71,7 +71,7 @@ function hyperscriptPropsChildren<P = any>(
7171}
7272
7373export function h < P = any > (
74- type : ReactType < P > | keyof ReactHTML ,
74+ type : ElementType < P > | keyof ReactHTML ,
7575 a ?: PropsLike < P > | Children ,
7676 b ?: Children ,
7777) : ReactElement < P > {
0 commit comments