Module Webapi.File

type t = Fetch.file

Blob superclass

include sig ... end
val arrayBuffer : t -> Js.Typed_array.ArrayBuffer.t Js.Promise.t
val size : t -> float
val slice : ?start:int -> ?end_:int -> ?contentType:string -> t -> t
val stream : t -> Fetch.readableStream
val text : t -> string Js.Promise.t
val type_ : t -> string
val _type : t -> string
  • deprecated Use [type_] instead

File class

val lastModified : t -> float
  • since 0.18.0
val name : t -> string
val preview : t -> string