File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -312,9 +312,6 @@ external useImperativeHandle7: (
312
312
313
313
@module ("react" ) external useDeferredValue : 'value => 'value = "useDeferredValue"
314
314
315
- @module ("react" )
316
- external useTransition : unit => (bool , (unit => unit ) => unit ) = "useTransition"
317
-
318
315
@module ("react" )
319
316
external useInsertionEffectOnEveryRender : (unit => option <unit => unit >) => unit =
320
317
"useInsertionEffect"
@@ -406,3 +403,13 @@ external setDisplayName: (component<'props>, string) => unit = "displayName"
406
403
407
404
@get @return (nullable )
408
405
external displayName : component <'props > => option <string > = "displayName"
406
+
407
+ // Actions
408
+
409
+ type transitionFunction = unit => promise <unit >
410
+
411
+ type transitionStartFunction = transitionFunction => unit
412
+
413
+ /** `useTransition` is a React Hook that lets you render a part of the UI in the background. */
414
+ @module ("react" )
415
+ external useTransition : unit => (bool , transitionStartFunction ) = "useTransition"
You can’t perform that action at this time.
0 commit comments