@@ -88,9 +88,8 @@ module Context = {
88
88
external createContext : 'a => Context .t <'a > = "createContext"
89
89
90
90
@module ("react" )
91
- external forwardRef : (@uncurry ('props , Js .Nullable .t <ref <'a >>) => element ) => component <
92
- 'props ,
93
- > = "forwardRef"
91
+ external forwardRef : (@uncurry ('props , Js .Nullable .t <ref <'a >>) => element ) => component <'props > =
92
+ "forwardRef"
94
93
95
94
@module ("react" )
96
95
external memo : component <'props > => component <'props > = "memo"
@@ -165,14 +164,11 @@ module Experimental = {
165
164
* only way to safely have any type of state and be able to update it correctly.
166
165
*/
167
166
@module ("react" )
168
- external useState : (@uncurry (unit => 'state )) => ('state , ('state => 'state ) => unit ) =
169
- "useState"
167
+ external useState : (@uncurry (unit => 'state )) => ('state , ('state => 'state ) => unit ) = "useState"
170
168
171
169
@module ("react" )
172
- external useReducer : (
173
- @uncurry ('state , 'action ) => 'state ,
174
- 'state ,
175
- ) => ('state , 'action => unit ) = "useReducer"
170
+ external useReducer : (@uncurry ('state , 'action ) => 'state , 'state ) => ('state , 'action => unit ) =
171
+ "useReducer"
176
172
177
173
@module ("react" )
178
174
external useReducerWithMapState : (
@@ -191,19 +187,16 @@ external useEffect1: (@uncurry (unit => option<unit => unit>), array<'a>) => uni
191
187
@module ("react" )
192
188
external useEffect2 : (@uncurry (unit => option <unit => unit >), ('a , 'b )) => unit = "useEffect"
193
189
@module ("react" )
194
- external useEffect3 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c )) => unit =
195
- "useEffect"
190
+ external useEffect3 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c )) => unit = "useEffect"
196
191
@module ("react" )
197
192
external useEffect4 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd )) => unit =
198
193
"useEffect"
199
194
@module ("react" )
200
195
external useEffect5 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e )) => unit =
201
196
"useEffect"
202
197
@module ("react" )
203
- external useEffect6 : (
204
- @uncurry (unit => option <unit => unit >),
205
- ('a , 'b , 'c , 'd , 'e , 'f ),
206
- ) => unit = "useEffect"
198
+ external useEffect6 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e , 'f )) => unit =
199
+ "useEffect"
207
200
@module ("react" )
208
201
external useEffect7 : (
209
202
@uncurry (unit => option <unit => unit >),
@@ -213,10 +206,8 @@ external useEffect7: (
213
206
@module ("react" )
214
207
external useLayoutEffect : (@uncurry (unit => option <unit => unit >)) => unit = "useLayoutEffect"
215
208
@module ("react" )
216
- external useLayoutEffect0 : (
217
- @uncurry (unit => option <unit => unit >),
218
- @as (json ` []` ) _ ,
219
- ) => unit = "useLayoutEffect"
209
+ external useLayoutEffect0 : (@uncurry (unit => option <unit => unit >), @as (json ` []` ) _ ) => unit =
210
+ "useLayoutEffect"
220
211
@module ("react" )
221
212
external useLayoutEffect1 : (@uncurry (unit => option <unit => unit >), array <'a >) => unit =
222
213
"useLayoutEffect"
@@ -230,10 +221,8 @@ external useLayoutEffect3: (@uncurry (unit => option<unit => unit>), ('a, 'b, 'c
230
221
external useLayoutEffect4 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd )) => unit =
231
222
"useLayoutEffect"
232
223
@module ("react" )
233
- external useLayoutEffect5 : (
234
- @uncurry (unit => option <unit => unit >),
235
- ('a , 'b , 'c , 'd , 'e ),
236
- ) => unit = "useLayoutEffect"
224
+ external useLayoutEffect5 : (@uncurry (unit => option <unit => unit >), ('a , 'b , 'c , 'd , 'e )) => unit =
225
+ "useLayoutEffect"
237
226
@module ("react" )
238
227
external useLayoutEffect6 : (
239
228
@uncurry (unit => option <unit => unit >),
@@ -293,10 +282,8 @@ external useCallback2: (@uncurry ('input => 'output), ('a, 'b)) => callback<'inp
293
282
"useCallback"
294
283
295
284
@module ("react" )
296
- external useCallback3 : (
297
- @uncurry ('input => 'output ),
298
- ('a , 'b , 'c ),
299
- ) => callback <'input , 'output > = "useCallback"
285
+ external useCallback3 : (@uncurry ('input => 'output ), ('a , 'b , 'c )) => callback <'input , 'output > =
286
+ "useCallback"
300
287
301
288
@module ("react" )
302
289
external useCallback4 : (
@@ -404,8 +391,7 @@ module Uncurried = {
404
391
type callback <'input , 'output > = (. 'input ) => 'output
405
392
406
393
@module ("react" )
407
- external useCallback : (@uncurry ('input => 'output )) => callback <'input , 'output > =
408
- "useCallback"
394
+ external useCallback : (@uncurry ('input => 'output )) => callback <'input , 'output > = "useCallback"
409
395
410
396
@module ("react" )
411
397
external useCallback0 : (
@@ -422,10 +408,8 @@ module Uncurried = {
422
408
"useCallback"
423
409
424
410
@module ("react" )
425
- external useCallback3 : (
426
- @uncurry ('input => 'output ),
427
- ('a , 'b , 'c ),
428
- ) => callback <'input , 'output > = "useCallback"
411
+ external useCallback3 : (@uncurry ('input => 'output ), ('a , 'b , 'c )) => callback <'input , 'output > =
412
+ "useCallback"
429
413
430
414
@module ("react" )
431
415
external useCallback4 : (
0 commit comments