File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -411,13 +411,17 @@ external displayName: component<'props> => option<string> = "displayName"
411411
412412// Actions
413413
414- type transitionFunction = unit => promise <unit >
415-
414+ type transitionFunction = unit => unit
416415type transitionStartFunction = transitionFunction => unit
417416
417+ type transitionFunctionAsync = unit => promise <unit >
418+ type transitionStartFunctionAsync = transitionFunctionAsync => unit
419+
418420/** `useTransition` is a React Hook that lets you render a part of the UI in the background. */
419421@module ("react" )
420422external useTransition : unit => (bool , transitionStartFunction ) = "useTransition"
423+ @module ("react" )
424+ external useTransitionAsync : unit => (bool , transitionStartFunctionAsync ) = "useTransition"
421425
422426type action <'state , 'payload > = ('state , 'payload ) => promise <'state >
423427
You can’t perform that action at this time.
0 commit comments