@@ -54,7 +54,7 @@ module Context = {
54
54
external createContext : 'a => Context .t <'a > = "createContext"
55
55
56
56
@module ("react" )
57
- external forwardRef : (@ uncurry ('props , Js .Nullable .t <Ref .t <'a >>) => element ) => component <'props > =
57
+ external forwardRef : (('props , Js .Nullable .t <Ref .t <'a >>) => element ) => component <'props > =
58
58
"forwardRef"
59
59
60
60
@module ("react" )
@@ -63,7 +63,7 @@ external memo: component<'props> => component<'props> = "memo"
63
63
@module ("react" )
64
64
external memoCustomCompareProps : (
65
65
component <'props >,
66
- @ uncurry ('props , 'props ) => bool ,
66
+ ('props , 'props ) => bool ,
67
67
) => component <'props > = "memo"
68
68
69
69
module Fragment = {
@@ -101,132 +101,132 @@ module Suspense = {
101
101
* only way to safely have any type of state and be able to update it correctly.
102
102
*/
103
103
@module ("react" )
104
- external useState : (@ uncurry (unit => 'state )) => ('state , ('state => 'state ) => unit ) = "useState"
104
+ external useState : ((unit => 'state )) => ('state , ('state => 'state ) => unit ) = "useState"
105
105
106
106
@module ("react" )
107
- external useReducer : (@ uncurry ('state , 'action ) => 'state , 'state ) => ('state , 'action => unit ) =
107
+ external useReducer : (('state , 'action ) => 'state , 'state ) => ('state , 'action => unit ) =
108
108
"useReducer"
109
109
110
110
@module ("react" )
111
111
external useReducerWithMapState : (
112
- @ uncurry ('state , 'action ) => 'state ,
112
+ ('state , 'action ) => 'state ,
113
113
'initialState ,
114
114
'initialState => 'state ,
115
115
) => ('state , 'action => unit ) = "useReducer"
116
116
117
117
@module ("react" )
118
- external useEffect : (@ uncurry (unit => option <unit => unit >)) => unit = "useEffect"
118
+ external useEffect : ((unit => option <unit => unit >)) => unit = "useEffect"
119
119
@module ("react" )
120
- external useEffect0 : (@ uncurry (unit => option <unit => unit >), @as (json ` []` ) _ ) => unit =
120
+ external useEffect0 : ((unit => option <unit => unit >), @as (json ` []` ) _ ) => unit =
121
121
"useEffect"
122
122
@module ("react" )
123
- external useEffect1 : (@ uncurry (unit => option <unit => unit >), array <'a >) => unit = "useEffect"
123
+ external useEffect1 : ((unit => option <unit => unit >), array <'a >) => unit = "useEffect"
124
124
@module ("react" )
125
- external useEffect2 : (@ uncurry (unit => option <unit => unit >), ('a , 'b )) => unit = "useEffect"
125
+ external useEffect2 : ((unit => option <unit => unit >), ('a , 'b )) => unit = "useEffect"
126
126
@module ("react" )
127
- external useEffect3 : (@ uncurry (unit => option <unit => unit >), ('a , 'b , 'c )) => unit = "useEffect"
127
+ external useEffect3 : ((unit => option <unit => unit >), ('a , 'b , 'c )) => unit = "useEffect"
128
128
@module ("react" )
129
- external useEffect4 : (@ uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd )) => unit =
129
+ external useEffect4 : ((unit => option <unit => unit >), ('a , 'b , 'c , 'd )) => unit =
130
130
"useEffect"
131
131
@module ("react" )
132
- external useEffect5 : (@ uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e )) => unit =
132
+ external useEffect5 : ((unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e )) => unit =
133
133
"useEffect"
134
134
@module ("react" )
135
- external useEffect6 : (@ uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e , 'f )) => unit =
135
+ external useEffect6 : ((unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e , 'f )) => unit =
136
136
"useEffect"
137
137
@module ("react" )
138
138
external useEffect7 : (
139
- @ uncurry (unit => option <unit => unit >),
139
+ (unit => option <unit => unit >),
140
140
('a , 'b , 'c , 'd , 'e , 'f , 'g ),
141
141
) => unit = "useEffect"
142
142
143
143
@module ("react" )
144
- external useLayoutEffect : (@ uncurry (unit => option <unit => unit >)) => unit = "useLayoutEffect"
144
+ external useLayoutEffect : ((unit => option <unit => unit >)) => unit = "useLayoutEffect"
145
145
@module ("react" )
146
- external useLayoutEffect0 : (@ uncurry (unit => option <unit => unit >), @as (json ` []` ) _ ) => unit =
146
+ external useLayoutEffect0 : ((unit => option <unit => unit >), @as (json ` []` ) _ ) => unit =
147
147
"useLayoutEffect"
148
148
@module ("react" )
149
- external useLayoutEffect1 : (@ uncurry (unit => option <unit => unit >), array <'a >) => unit =
149
+ external useLayoutEffect1 : ((unit => option <unit => unit >), array <'a >) => unit =
150
150
"useLayoutEffect"
151
151
@module ("react" )
152
- external useLayoutEffect2 : (@ uncurry (unit => option <unit => unit >), ('a , 'b )) => unit =
152
+ external useLayoutEffect2 : ((unit => option <unit => unit >), ('a , 'b )) => unit =
153
153
"useLayoutEffect"
154
154
@module ("react" )
155
- external useLayoutEffect3 : (@ uncurry (unit => option <unit => unit >), ('a , 'b , 'c )) => unit =
155
+ external useLayoutEffect3 : ((unit => option <unit => unit >), ('a , 'b , 'c )) => unit =
156
156
"useLayoutEffect"
157
157
@module ("react" )
158
- external useLayoutEffect4 : (@ uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd )) => unit =
158
+ external useLayoutEffect4 : ((unit => option <unit => unit >), ('a , 'b , 'c , 'd )) => unit =
159
159
"useLayoutEffect"
160
160
@module ("react" )
161
- external useLayoutEffect5 : (@ uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e )) => unit =
161
+ external useLayoutEffect5 : ((unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e )) => unit =
162
162
"useLayoutEffect"
163
163
@module ("react" )
164
164
external useLayoutEffect6 : (
165
- @ uncurry (unit => option <unit => unit >),
165
+ (unit => option <unit => unit >),
166
166
('a , 'b , 'c , 'd , 'e , 'f ),
167
167
) => unit = "useLayoutEffect"
168
168
@module ("react" )
169
169
external useLayoutEffect7 : (
170
- @ uncurry (unit => option <unit => unit >),
170
+ (unit => option <unit => unit >),
171
171
('a , 'b , 'c , 'd , 'e , 'f , 'g ),
172
172
) => unit = "useLayoutEffect"
173
173
174
174
@module ("react" )
175
- external useMemo : (@ uncurry (unit => 'any )) => 'any = "useMemo"
175
+ external useMemo : ((unit => 'any )) => 'any = "useMemo"
176
176
@module ("react" )
177
- external useMemo0 : (@ uncurry (unit => 'any ), @as (json ` []` ) _ ) => 'any = "useMemo"
177
+ external useMemo0 : ((unit => 'any ), @as (json ` []` ) _ ) => 'any = "useMemo"
178
178
@module ("react" )
179
- external useMemo1 : (@ uncurry (unit => 'any ), array <'a >) => 'any = "useMemo"
179
+ external useMemo1 : ((unit => 'any ), array <'a >) => 'any = "useMemo"
180
180
@module ("react" )
181
- external useMemo2 : (@ uncurry (unit => 'any ), ('a , 'b )) => 'any = "useMemo"
181
+ external useMemo2 : ((unit => 'any ), ('a , 'b )) => 'any = "useMemo"
182
182
@module ("react" )
183
- external useMemo3 : (@ uncurry (unit => 'any ), ('a , 'b , 'c )) => 'any = "useMemo"
183
+ external useMemo3 : ((unit => 'any ), ('a , 'b , 'c )) => 'any = "useMemo"
184
184
@module ("react" )
185
- external useMemo4 : (@ uncurry (unit => 'any ), ('a , 'b , 'c , 'd )) => 'any = "useMemo"
185
+ external useMemo4 : ((unit => 'any ), ('a , 'b , 'c , 'd )) => 'any = "useMemo"
186
186
@module ("react" )
187
- external useMemo5 : (@ uncurry (unit => 'any ), ('a , 'b , 'c , 'd , 'e )) => 'any = "useMemo"
187
+ external useMemo5 : ((unit => 'any ), ('a , 'b , 'c , 'd , 'e )) => 'any = "useMemo"
188
188
@module ("react" )
189
- external useMemo6 : (@ uncurry (unit => 'any ), ('a , 'b , 'c , 'd , 'e , 'f )) => 'any = "useMemo"
189
+ external useMemo6 : ((unit => 'any ), ('a , 'b , 'c , 'd , 'e , 'f )) => 'any = "useMemo"
190
190
@module ("react" )
191
- external useMemo7 : (@ uncurry (unit => 'any ), ('a , 'b , 'c , 'd , 'e , 'f , 'g )) => 'any = "useMemo"
191
+ external useMemo7 : ((unit => 'any ), ('a , 'b , 'c , 'd , 'e , 'f , 'g )) => 'any = "useMemo"
192
192
193
193
/* This is used as return values */
194
194
type callback <'input , 'output > = 'input => 'output
195
195
196
196
@module ("react" )
197
- external useCallback : (@ uncurry ('input => 'output )) => callback <'input , 'output > = "useCallback"
197
+ external useCallback : (('input => 'output )) => callback <'input , 'output > = "useCallback"
198
198
@module ("react" )
199
199
external useCallback0 : (
200
- @ uncurry ('input => 'output ),
200
+ ('input => 'output ),
201
201
@as (json ` []` ) _ ,
202
202
) => callback <'input , 'output > = "useCallback"
203
203
@module ("react" )
204
- external useCallback1 : (@ uncurry ('input => 'output ), array <'a >) => callback <'input , 'output > =
204
+ external useCallback1 : (('input => 'output ), array <'a >) => callback <'input , 'output > =
205
205
"useCallback"
206
206
@module ("react" )
207
- external useCallback2 : (@ uncurry ('input => 'output ), ('a , 'b )) => callback <'input , 'output > =
207
+ external useCallback2 : (('input => 'output ), ('a , 'b )) => callback <'input , 'output > =
208
208
"useCallback"
209
209
@module ("react" )
210
- external useCallback3 : (@ uncurry ('input => 'output ), ('a , 'b , 'c )) => callback <'input , 'output > =
210
+ external useCallback3 : (('input => 'output ), ('a , 'b , 'c )) => callback <'input , 'output > =
211
211
"useCallback"
212
212
@module ("react" )
213
213
external useCallback4 : (
214
- @ uncurry ('input => 'output ),
214
+ ('input => 'output ),
215
215
('a , 'b , 'c , 'd ),
216
216
) => callback <'input , 'output > = "useCallback"
217
217
@module ("react" )
218
218
external useCallback5 : (
219
- @ uncurry ('input => 'output ),
219
+ ('input => 'output ),
220
220
('a , 'b , 'c , 'd , 'e ),
221
221
) => callback <'input , 'output > = "useCallback"
222
222
@module ("react" )
223
223
external useCallback6 : (
224
- @ uncurry ('input => 'output ),
224
+ ('input => 'output ),
225
225
('a , 'b , 'c , 'd , 'e , 'f ),
226
226
) => callback <'input , 'output > = "useCallback"
227
227
@module ("react" )
228
228
external useCallback7 : (
229
- @ uncurry ('input => 'output ),
229
+ ('input => 'output ),
230
230
('a , 'b , 'c , 'd , 'e , 'f , 'g ),
231
231
) => callback <'input , 'output > = "useCallback"
232
232
@@ -238,56 +238,56 @@ external useContext: Context.t<'any> => 'any = "useContext"
238
238
@module ("react" )
239
239
external useImperativeHandle0 : (
240
240
Js .Nullable .t <Ref .t <'value >>,
241
- @ uncurry (unit => 'value ),
241
+ (unit => 'value ),
242
242
@as (json ` []` ) _ ,
243
243
) => unit = "useImperativeHandle"
244
244
245
245
@module ("react" )
246
246
external useImperativeHandle1 : (
247
247
Js .Nullable .t <Ref .t <'value >>,
248
- @ uncurry (unit => 'value ),
248
+ (unit => 'value ),
249
249
array <'a >,
250
250
) => unit = "useImperativeHandle"
251
251
252
252
@module ("react" )
253
253
external useImperativeHandle2 : (
254
254
Js .Nullable .t <Ref .t <'value >>,
255
- @ uncurry (unit => 'value ),
255
+ (unit => 'value ),
256
256
('a , 'b ),
257
257
) => unit = "useImperativeHandle"
258
258
259
259
@module ("react" )
260
260
external useImperativeHandle3 : (
261
261
Js .Nullable .t <Ref .t <'value >>,
262
- @ uncurry (unit => 'value ),
262
+ (unit => 'value ),
263
263
('a , 'b , 'c ),
264
264
) => unit = "useImperativeHandle"
265
265
266
266
@module ("react" )
267
267
external useImperativeHandle4 : (
268
268
Js .Nullable .t <Ref .t <'value >>,
269
- @ uncurry (unit => 'value ),
269
+ (unit => 'value ),
270
270
('a , 'b , 'c , 'd ),
271
271
) => unit = "useImperativeHandle"
272
272
273
273
@module ("react" )
274
274
external useImperativeHandle5 : (
275
275
Js .Nullable .t <Ref .t <'value >>,
276
- @ uncurry (unit => 'value ),
276
+ (unit => 'value ),
277
277
('a , 'b , 'c , 'd , 'e ),
278
278
) => unit = "useImperativeHandle"
279
279
280
280
@module ("react" )
281
281
external useImperativeHandle6 : (
282
282
Js .Nullable .t <Ref .t <'value >>,
283
- @ uncurry (unit => 'value ),
283
+ (unit => 'value ),
284
284
('a , 'b , 'c , 'd , 'e , 'f ),
285
285
) => unit = "useImperativeHandle"
286
286
287
287
@module ("react" )
288
288
external useImperativeHandle7 : (
289
289
Js .Nullable .t <Ref .t <'value >>,
290
- @ uncurry (unit => 'value ),
290
+ (unit => 'value ),
291
291
('a , 'b , 'c , 'd , 'e , 'f , 'g ),
292
292
) => unit = "useImperativeHandle"
293
293
0 commit comments