From 757dd23e1b1c22a2fc82fd48b4951c65e84235d2 Mon Sep 17 00:00:00 2001 From: David Sancho Moreno Date: Wed, 17 Jul 2024 10:54:55 +0200 Subject: [PATCH] Remove type callback duplicate --- src/React.re | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/React.re b/src/React.re index e8c9c7fc4..17a7f61b1 100644 --- a/src/React.re +++ b/src/React.re @@ -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 =