Fetch.FormData
module EntryValue : sig ... end
module Iterator : sig ... end
We need to bind to JavaScript Iterators for FormData functionality. But ideally this binding should be moved into BuckleScript itself.
type t = formData
val make : unit -> t
val append : string -> string -> t -> unit
val delete : string -> t -> unit
val get : string -> t -> EntryValue.t option
val getAll : string -> t -> EntryValue.t array
val set : string -> string -> t -> unit
val has : string -> t -> bool
val keys : t -> string Iterator.t
val values : t -> EntryValue.t Iterator.t
val appendObject : string -> < .. > Js.t -> ?filename:string -> t -> unit
This is for React Native compatibility purposes
val setObject : string -> < .. > Js.t -> ?filename:string -> t -> unit
This is for React Native compatibility purposes
val entries : t -> (string * EntryValue.t) Iterator.t