package ocaml-vdom

  1. Overview
  2. Docs
type state =
  1. | Empty
  2. | Loading
  3. | Done
type t = private Ojs.t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
val create : unit -> t
val ready_state : t -> state
val result : t -> string
val set_onload : t -> (unit -> unit) -> unit
val read_as_binary_string : t -> File.t -> unit
val read_as_text : t -> File.t -> unit