@@ -909,57 +909,12 @@ module Experimental = {
909909 (' state , ' optimisticValue => unit ) =
910910 "useOptimistic" ;
911911
912- module FormData = {
913- /* This file is embeded since https://github.com/melange-re/melange/pull/1153 gets merged */
914-
915- type t ;
916- type file ;
917- type blob ;
918- type entryValue ;
919-
920- [@ mel . new ] external make : unit => t = "FormData" ;
921- [@ mel . send . pipe : t ] external append : (string , string ) => unit = "append" ;
922- [@ mel . send . pipe : t ] external delete : string => unit = "delete" ;
923- [@ mel . send . pipe : t ] external get : string => option (entryValue ) = "get" ;
924- [@ mel . send . pipe : t ]
925- external getAll : string => array (entryValue ) = "getAll" ;
926- [@ mel . send . pipe : t ] external set : (string , string ) => unit = "set" ;
927- [@ mel . send . pipe : t ] external has : string => bool = "has" ;
928- [@ mel . send ] external keys : t => Js . Iterator . t (string ) = "keys" ;
929- [@ mel . send ] external values : t => Js . Iterator . t (entryValue ) = "values" ;
930-
931- [@ mel . send . pipe : t ]
932- external appendObject : (string , Js . t ({..}), ~filename : string =?) => unit =
933- "append" ;
934-
935- [@ mel . send . pipe : t ]
936- external appendBlob : (string , blob , ~filename : string =?) => unit =
937- "append" ;
938-
939- [@ mel . send . pipe : t ]
940- external appendFile : (string , file , ~filename : string =?) => unit =
941- "append" ;
942-
943- [@ mel . send . pipe : t ]
944- external setObject : (string , Js . t ({..}), ~filename : string =?) => unit =
945- "set" ;
946-
947- [@ mel . send . pipe : t ]
948- external setBlob : (string , blob , ~filename : string =?) => unit = "set" ;
949-
950- [@ mel . send . pipe : t ]
951- external setFile : (string , file , ~filename : string =?) => unit = "set" ;
952-
953- [@ mel . send ]
954- external entries : t => Js . Iterator . t ((string , entryValue )) = "entries" ;
955- };
956-
957912 type formAction ;
958913
959914 /* https://react.dev/reference/react/useActionState */
960915 [@ mel . module "react" ]
961916 external useActionState :
962- ((' state , FormData . t ) => unit , ' state , ~permalink : bool =?) =>
917+ ((' state , Js . FormData . t ) => unit , ' state , ~permalink : bool =?) =>
963918 (' state , formAction , bool ) =
964919 "useActionState" ;
965920};
0 commit comments