File tree 2 files changed +126
-123
lines changed
2 files changed +126
-123
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const types = {
19
19
"multiple" : "Boolean" ,
20
20
"muted" : "Boolean" ,
21
21
"noValidate" : "Boolean" ,
22
+ "onChange" : "EventHandler" ,
22
23
"open" : "Boolean" ,
23
24
"playsInline" : "Boolean" ,
24
25
"readOnly" : "Boolean" ,
@@ -46,7 +47,7 @@ props.elements.html
46
47
const noChildren = voids . includes ( e ) ;
47
48
const symbol = reserved . includes ( e ) ? `${ e } '` : e ;
48
49
return `
49
- type Props_${ e } = ${ printRecord (
50
+ type Props_${ e } =${ printRecord (
50
51
( noChildren ? [ ] : [ "children" ] ) . concat ( props [ e ] || [ ] ) . sort ( )
51
52
) }
52
53
@@ -57,9 +58,10 @@ props.elements.html
57
58
-> JSX
58
59
${ symbol } = createElement (unsafeCreateDOMComponent "${ e } ")${
59
60
noChildren ? "" : `
60
-
61
+
61
62
${ e } _ :: Array JSX -> JSX
62
63
${ e } _ children = ${ symbol } { children }`
63
64
}
64
65
` ;
65
66
} ) . forEach ( ( x ) => console . log ( x . replace ( / ^ \n \ { 4 } / , "" ) . replace ( / \n \ { 4 } / g, "\n" ) ) )
67
+
You can’t perform that action at this time.
0 commit comments