@@ -39,9 +39,9 @@ external jsxs: (component<'props>, 'props) => element = "jsxs"
39
39
@module ("react/jsx-runtime" )
40
40
external jsxsKeyed : (component <'props >, 'props , ~key : string = ?, @ignore unit ) => element = "jsxs"
41
41
42
- type fragmentProps < 'children > = {children ?: 'children }
42
+ type fragmentProps = {children ?: element }
43
43
44
- @module ("react/jsx-runtime" ) external jsxFragment : component <fragmentProps < 'children > > = "Fragment"
44
+ @module ("react/jsx-runtime" ) external jsxFragment : component <fragmentProps > = "Fragment"
45
45
46
46
type ref <'value > = {mutable current : 'value }
47
47
@@ -104,27 +104,27 @@ external memoCustomCompareProps: (
104
104
@uncurry ('props , 'props ) => bool ,
105
105
) => component <'props > = "memo"
106
106
107
- @module ("react" ) external fragment : 'a = "Fragment"
107
+ @module ("react" ) external fragment : component < fragmentProps > = "Fragment"
108
108
109
109
module Fragment = {
110
- type props < 'children > = {key ?: string , children : 'children }
110
+ type props = {key ?: string , children : element }
111
111
112
112
@module ("react" )
113
- external make : component <props < 'children > > = "Fragment"
113
+ external make : component <props > = "Fragment"
114
114
}
115
115
116
116
module StrictMode = {
117
- type props < 'children > = {key ?: string , children : 'children }
117
+ type props = {key ?: string , children : element }
118
118
119
119
@module ("react" )
120
- external make : component <props < 'children > > = "StrictMode"
120
+ external make : component <props > = "StrictMode"
121
121
}
122
122
123
123
module Suspense = {
124
- type props < 'children , 'fallback > = {key ?: string , children ?: 'children , fallback ?: 'fallback }
124
+ type props = {key ?: string , children ?: element , fallback ?: element }
125
125
126
126
@module ("react" )
127
- external make : component <props < 'children , 'fallback > > = "Suspense"
127
+ external make : component <props > = "Suspense"
128
128
}
129
129
130
130
type dynamicallyImportedModule <'a > = {default : component <'a >}
0 commit comments