Skip to content

Commit

Permalink
Remove type callback duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Jul 17, 2024
1 parent ecccd3c commit 757dd23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/React.re
Original file line number Diff line number Diff line change
Expand Up @@ -872,14 +872,13 @@ module Uncurried = {
"useCallback";
};

type callback('input, 'output) = 'input => 'output;

[@mel.module "react"]
external useTransition: unit => (bool, callback(callback(unit, unit), unit)) =
"useTransition";

[@mel.module "react"]
external startTransition: ([@mel.uncurry] (unit => unit)) => unit = "startTransition";
external startTransition: ([@mel.uncurry] (unit => unit)) => unit =
"startTransition";

[@mel.module "react"]
external useDebugValue: ('value, ~format: 'value => string=?, unit) => unit =
Expand Down

0 comments on commit 757dd23

Please sign in to comment.