22 createElement ,
33 ReactElement ,
44 ReactNode ,
5- ReactType ,
5+ ElementType ,
66 ReactHTML ,
77 Attributes ,
88} from 'react' ;
@@ -17,7 +17,7 @@ type PropsLike<P> = P & PropsExtensions & Attributes;
1717type Children = string | Array < ReactNode > ;
1818
1919function createElementSpreading < P = any > (
20- type : ReactType < P > | keyof ReactHTML ,
20+ type : ElementType < P > | keyof ReactHTML ,
2121 props : PropsLike < P > | null ,
2222 children : Children ,
2323) : ReactElement < P > {
@@ -29,7 +29,7 @@ function createElementSpreading<P = any>(
2929}
3030
3131function hyperscriptProps < P = any > (
32- type : ReactType < P > | keyof ReactHTML ,
32+ type : ElementType < P > | keyof ReactHTML ,
3333 props : PropsLike < P > ,
3434) : ReactElement < P > {
3535 if ( ! props . sel ) {
@@ -40,14 +40,14 @@ function hyperscriptProps<P = any>(
4040}
4141
4242function hyperscriptChildren < P = any > (
43- type : ReactType < P > | keyof ReactHTML ,
43+ type : ElementType < P > | keyof ReactHTML ,
4444 children : Children ,
4545) : ReactElement < P > {
4646 return createElementSpreading ( type , null , children ) ;
4747}
4848
4949function hyperscriptPropsChildren < P = any > (
50- type : ReactType < P > | keyof ReactHTML ,
50+ type : ElementType < P > | keyof ReactHTML ,
5151 props : PropsLike < P > ,
5252 children : Children ,
5353) : ReactElement < P > {
@@ -59,7 +59,7 @@ function hyperscriptPropsChildren<P = any>(
5959}
6060
6161export function h < P = any > (
62- type : ReactType < P > | keyof ReactHTML ,
62+ type : ElementType < P > | keyof ReactHTML ,
6363 a ?: PropsLike < P > | Children ,
6464 b ?: Children ,
6565) : ReactElement < P > {
0 commit comments