@@ -266,132 +266,132 @@ external make: (
266
266
ReactEvent Clipboard
267
267
@see <https: //reactjs.org /docs /events.html#clipboard-events >
268
268
**/
269
- ~onCopy: ReactEvent.Clipboard.t=?,
270
- ~onCut: ReactEvent.Clipboard.t=?,
271
- ~onPaste: ReactEvent.Clipboard.t=?,
269
+ ~onCopy: ReactEvent.Clipboard.t => unit =?,
270
+ ~onCut: ReactEvent.Clipboard.t => unit =?,
271
+ ~onPaste: ReactEvent.Clipboard.t => unit =?,
272
272
/**
273
273
ReactEvent Composition
274
274
@see <https: //reactjs.org /docs /events.html#composition-events >
275
275
**/
276
- ~onCompositionEnd: ReactEvent.Composition.t=?,
277
- ~onCompositionStart: ReactEvent.Composition.t=?,
278
- ~onCompositionUpdate: ReactEvent.Composition.t=?,
276
+ ~onCompositionEnd: ReactEvent.Composition.t => unit =?,
277
+ ~onCompositionStart: ReactEvent.Composition.t => unit =?,
278
+ ~onCompositionUpdate: ReactEvent.Composition.t => unit =?,
279
279
/**
280
280
ReactEvent Keyboard
281
281
@see <https: //reactjs.org /docs /events.html#keyboard-events >
282
282
**/
283
- ~onKeyDown: ReactEvent.Keyboard.t=?,
284
- ~onKeyPress: ReactEvent.Keyboard.t=?,
285
- ~onKeyUp: ReactEvent.Keyboard.t=? /**
283
+ ~onKeyDown: ReactEvent.Keyboard.t => unit =?,
284
+ ~onKeyPress: ReactEvent.Keyboard.t => unit =?,
285
+ ~onKeyUp: ReactEvent.Keyboard.t => unit =? /**
286
286
ReactEvent Focus
287
287
@see <https: //reactjs.org /docs /events.html#focus-events >
288
288
**/,
289
- ~onFocus: ReactEvent.Focus.t=?,
290
- ~onBlur: ReactEvent.Focus.t=?,
289
+ ~onFocus: ReactEvent.Focus.t => unit =?,
290
+ ~onBlur: ReactEvent.Focus.t => unit =?,
291
291
/**
292
292
ReactEvent Form
293
293
@see <https: //reactjs.org /docs /events.html#form-events >
294
294
**/
295
- ~onChange: ReactEvent.Form.t=?,
296
- ~onInput: ReactEvent.Form.t=?,
297
- ~onInvalid: ReactEvent.Form.t=?,
298
- ~onReset: ReactEvent.Form.t=?,
299
- ~onSubmit: ReactEvent.Form.t=?,
295
+ ~onChange: ReactEvent.Form.t => unit =?,
296
+ ~onInput: ReactEvent.Form.t => unit =?,
297
+ ~onInvalid: ReactEvent.Form.t => unit =?,
298
+ ~onReset: ReactEvent.Form.t => unit =?,
299
+ ~onSubmit: ReactEvent.Form.t => unit =?,
300
300
/**
301
301
ReactEvent Generic Events
302
302
@see <https: //reactjs.org /docs /events.html#generic-events >
303
303
ISSUE: Not Implemented in @rescript/react for ReactEvent.Generic;
304
- ~onError: ReactEvent.Generic.t=?,
305
- ~onLoad: ReactEvent.Generic.t=?,
304
+ ~onError: ReactEvent.Generic.t => unit =?,
305
+ ~onLoad: ReactEvent.Generic.t => unit =?,
306
306
**/
307
307
/**
308
308
ReactEvent Mouse
309
309
@see <https: //reactjs.org /docs /events.html#mouse-events >
310
310
**/
311
- ~onClick: ReactEvent.Mouse.t=?,
312
- ~onContextMenu: ReactEvent.Mouse.t=?,
313
- ~onDoubleClick: ReactEvent.Mouse.t=?,
314
- ~onDrag: ReactEvent.Mouse.t=?,
315
- ~onDragEnd: ReactEvent.Mouse.t=?,
316
- ~onDragEnter: ReactEvent.Mouse.t=?,
317
- ~onDragExit: ReactEvent.Mouse.t=?,
318
- ~onDragLeave: ReactEvent.Mouse.t=?,
319
- ~onDragOver: ReactEvent.Mouse.t=?,
320
- ~onDragStart: ReactEvent.Mouse.t=?,
321
- ~onDrop: ReactEvent.Mouse.t=?,
322
- ~onMouseDown: ReactEvent.Mouse.t=?,
323
- ~onMouseEnter: ReactEvent.Mouse.t=?,
324
- ~onMouseLeave: ReactEvent.Mouse.t=?,
325
- ~onMouseMove: ReactEvent.Mouse.t=?,
326
- ~onMouseOut: ReactEvent.Mouse.t=?,
327
- ~onMouseOver: ReactEvent.Mouse.t=?,
328
- ~onMouseUp: ReactEvent.Mouse.t=?,
311
+ ~onClick: ReactEvent.Mouse.t => unit =?,
312
+ ~onContextMenu: ReactEvent.Mouse.t => unit =?,
313
+ ~onDoubleClick: ReactEvent.Mouse.t => unit =?,
314
+ ~onDrag: ReactEvent.Mouse.t => unit =?,
315
+ ~onDragEnd: ReactEvent.Mouse.t => unit =?,
316
+ ~onDragEnter: ReactEvent.Mouse.t => unit =?,
317
+ ~onDragExit: ReactEvent.Mouse.t => unit =?,
318
+ ~onDragLeave: ReactEvent.Mouse.t => unit =?,
319
+ ~onDragOver: ReactEvent.Mouse.t => unit =?,
320
+ ~onDragStart: ReactEvent.Mouse.t => unit =?,
321
+ ~onDrop: ReactEvent.Mouse.t => unit =?,
322
+ ~onMouseDown: ReactEvent.Mouse.t => unit =?,
323
+ ~onMouseEnter: ReactEvent.Mouse.t => unit =?,
324
+ ~onMouseLeave: ReactEvent.Mouse.t => unit =?,
325
+ ~onMouseMove: ReactEvent.Mouse.t => unit =?,
326
+ ~onMouseOut: ReactEvent.Mouse.t => unit =?,
327
+ ~onMouseOver: ReactEvent.Mouse.t => unit =?,
328
+ ~onMouseUp: ReactEvent.Mouse.t => unit =?,
329
329
/**
330
330
ReactEvent Pointer
331
331
@see <https: //reactjs.org /docs /events.html#pointer-events >
332
332
**/
333
- ~onPointerDown: ReactEvent.Pointer.t=?,
334
- ~onPointerMove: ReactEvent.Pointer.t=?,
335
- ~onPointerUp: ReactEvent.Pointer.t=?,
336
- ~onPointerCancel: ReactEvent.Pointer.t=?,
337
- ~onGotPointerCapture: ReactEvent.Pointer.t=?,
338
- ~onLostPointerCapture: ReactEvent.Pointer.t=?,
339
- ~onPointerEnter: ReactEvent.Pointer.t=?,
340
- ~onPointerLeave: ReactEvent.Pointer.t=?,
341
- ~onPointerOver: ReactEvent.Pointer.t=?,
342
- ~onPointerOut: ReactEvent.Pointer.t=?,
333
+ ~onPointerDown: ReactEvent.Pointer.t => unit =?,
334
+ ~onPointerMove: ReactEvent.Pointer.t => unit =?,
335
+ ~onPointerUp: ReactEvent.Pointer.t => unit =?,
336
+ ~onPointerCancel: ReactEvent.Pointer.t => unit =?,
337
+ ~onGotPointerCapture: ReactEvent.Pointer.t => unit =?,
338
+ ~onLostPointerCapture: ReactEvent.Pointer.t => unit =?,
339
+ ~onPointerEnter: ReactEvent.Pointer.t => unit =?,
340
+ ~onPointerLeave: ReactEvent.Pointer.t => unit =?,
341
+ ~onPointerOver: ReactEvent.Pointer.t => unit =?,
342
+ ~onPointerOut: ReactEvent.Pointer.t => unit =?,
343
343
/**
344
344
ReactEvent Selection
345
345
@see <https: //reactjs.org /docs /events.html#selection-events >
346
346
**/
347
- ~onSelect: ReactEvent.Selection.t=?,
347
+ ~onSelect: ReactEvent.Selection.t => unit =?,
348
348
/**
349
349
ReactEvent Touch
350
350
@see <https: //reactjs.org /docs /events.html#touch-events >
351
351
**/
352
- ~onTouchCancel: ReactEvent.Touch.t=?,
353
- ~onTouchEnd: ReactEvent.Touch.t=?,
354
- ~onTouchMove: ReactEvent.Touch.t=?,
355
- ~onTouchStart: ReactEvent.Touch.t=?,
352
+ ~onTouchCancel: ReactEvent.Touch.t => unit =?,
353
+ ~onTouchEnd: ReactEvent.Touch.t => unit =?,
354
+ ~onTouchMove: ReactEvent.Touch.t => unit =?,
355
+ ~onTouchStart: ReactEvent.Touch.t => unit =?,
356
356
/**
357
357
ReactEvent UI Events
358
358
@see <https: //reactjs.org /docs /events.html#ui-events >
359
359
**/
360
- ~onScroll: ReactEvent.UI.t=?,
360
+ ~onScroll: ReactEvent.UI.t => unit =?,
361
361
/**
362
362
ReactEvent Wheel
363
363
@see <https: //reactjs.org /docs /events.html#wheel-events >
364
364
**/
365
- ~onWheel: ReactEvent.Wheel.t=?,
365
+ ~onWheel: ReactEvent.Wheel.t => unit =?,
366
366
/**
367
367
ReactEvent Media
368
368
@see <https: //reactjs.org /docs /events.html#media-events >
369
369
**/
370
- ~onAbort: ReactEvent.Media.t=?,
371
- ~onCanPlay: ReactEvent.Media.t=?,
372
- ~onCanPlayThrough: ReactEvent.Media.t=?,
373
- ~onDurationChange: ReactEvent.Media.t=?,
374
- ~onEmptied: ReactEvent.Media.t=?,
375
- ~onEncrypted: ReactEvent.Media.t=?,
376
- ~onEnded: ReactEvent.Media.t=?,
377
- // ~onError: ReactEvent.Media.t=?,
378
- ~onLoadedData: ReactEvent.Media.t=?,
379
- ~onLoadedMetadata: ReactEvent.Media.t=?,
380
- ~onLoadStart: ReactEvent.Media.t=?,
381
- ~onPause: ReactEvent.Media.t=?,
382
- ~onPlay: ReactEvent.Media.t=?,
383
- ~onPlaying: ReactEvent.Media.t=?,
384
- ~onProgress: ReactEvent.Media.t=?,
385
- ~onRateChange: ReactEvent.Media.t=?,
386
- ~onSeeked: ReactEvent.Media.t=?,
387
- ~onSeeking: ReactEvent.Media.t=?,
388
- ~onStalled: ReactEvent.Media.t=?,
389
- ~onSuspend: ReactEvent.Media.t=?,
390
- ~onTimeUpdate: ReactEvent.Media.t=?,
391
- ~onVolumeChange: ReactEvent.Media.t=?,
392
- ~onWaiting: ReactEvent.Media.t=?,
393
- ~onLoad: ReactEvent.Synthetic.t=?,
394
- ~onError: ReactEvent.Synthetic.t=?,
370
+ ~onAbort: ReactEvent.Media.t => unit =?,
371
+ ~onCanPlay: ReactEvent.Media.t => unit =?,
372
+ ~onCanPlayThrough: ReactEvent.Media.t => unit =?,
373
+ ~onDurationChange: ReactEvent.Media.t => unit =?,
374
+ ~onEmptied: ReactEvent.Media.t => unit =?,
375
+ ~onEncrypted: ReactEvent.Media.t => unit =?,
376
+ ~onEnded: ReactEvent.Media.t => unit =?,
377
+ // ~onError: ReactEvent.Media.t => unit =?,
378
+ ~onLoadedData: ReactEvent.Media.t => unit =?,
379
+ ~onLoadedMetadata: ReactEvent.Media.t => unit =?,
380
+ ~onLoadStart: ReactEvent.Media.t => unit =?,
381
+ ~onPause: ReactEvent.Media.t => unit =?,
382
+ ~onPlay: ReactEvent.Media.t => unit =?,
383
+ ~onPlaying: ReactEvent.Media.t => unit =?,
384
+ ~onProgress: ReactEvent.Media.t => unit =?,
385
+ ~onRateChange: ReactEvent.Media.t => unit =?,
386
+ ~onSeeked: ReactEvent.Media.t => unit =?,
387
+ ~onSeeking: ReactEvent.Media.t => unit =?,
388
+ ~onStalled: ReactEvent.Media.t => unit =?,
389
+ ~onSuspend: ReactEvent.Media.t => unit =?,
390
+ ~onTimeUpdate: ReactEvent.Media.t => unit =?,
391
+ ~onVolumeChange: ReactEvent.Media.t => unit =?,
392
+ ~onWaiting: ReactEvent.Media.t => unit =?,
393
+ ~onLoad: ReactEvent.Synthetic.t => unit =?,
394
+ ~onError: ReactEvent.Synthetic.t => unit =?,
395
395
/**
396
396
ReactEvent Other
397
397
@see <https: //reactjs.org /docs /events.html#other-events >
@@ -401,9 +401,9 @@ external make: (
401
401
ReactEvent Animation
402
402
@see <https: //reactjs.org /docs /events.html#animation-events >
403
403
**/
404
- ~onAnimationStart: ReactEvent.Animation.t=?,
405
- ~onAnimationEnd: ReactEvent.Animation.t=?,
406
- ~onAnimationIteration: ReactEvent.Animation.t=?,
404
+ ~onAnimationStart: ReactEvent.Animation.t => unit =?,
405
+ ~onAnimationEnd: ReactEvent.Animation.t => unit =?,
406
+ ~onAnimationIteration: ReactEvent.Animation.t => unit =?,
407
407
) => React.element = "<%= name %> "
408
408
409
409
let makeProps = (
0 commit comments