package vdom

  1. Overview
  2. Docs

Module Js_browser.FileReaderSource

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