package js_of_ocaml-lwt

  1. Overview
  2. Docs
include module type of struct include Js_of_ocaml.File end
class type blob = object ... end
class type file = object ... end
type file_any = File.file_any
module CoerceTo = File.CoerceTo
class type fileList = object ... end
class type fileError = object ... end
class type 'a progressEvent = object ... end
class type progressEventTarget = object ... end
type readyState = File.readyState =
  1. | EMPTY
  2. | LOADING
  3. | DONE
class type fileReader = object ... end
module ReaderEvent = File.ReaderEvent
val filename : file Js.t -> Js.js_string Js.t
val fileReader : fileReader Js.t Js.constr
val addEventListener : progressEventTarget as 'a Js.t -> 'b Dom.Event.typ -> ('a Js.t, 'b) Dom.event_listener -> bool Js.t -> Dom.event_listener_id
include module type of struct include Lwt_file end
val readAsBinaryString : Js_of_ocaml.File.blob Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t
val readAsText : Js_of_ocaml.File.blob Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t
val readAsText_withEncoding : Js_of_ocaml.File.blob Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t
val readAsDataURL : Js_of_ocaml.File.blob Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t
OCaml

Innovation. Community. Security.