package js_of_ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type +'a opt
type +'a optdef
val null : 'a opt
val some : 'a -> 'a opt
val undefined : 'a optdef
val def : 'a -> 'a optdef
module type OPT = sig ... end
module Opt : sig ... end
module Optdef : sig ... end
type +'a t
type +'a meth
type +'a gen_prop
type 'a readonly_prop = < get : 'a > gen_prop
type 'a writeonly_prop = < set : 'a -> unit > gen_prop
type 'a prop = < get : 'a ; set : 'a -> unit > gen_prop
type 'a optdef_prop = < get : 'a optdef ; set : 'a -> unit > gen_prop
type +'a constr
type (-'a, +'b) meth_callback
type 'a callback = (unit, 'a) meth_callback
val wrap_callback : ('a -> 'b) -> ('c, 'a -> 'b) meth_callback
val wrap_meth_callback : ('b -> 'a) -> ('b, 'a) meth_callback
val _true : bool t
val _false : bool t
type match_result_handle
type string_array
class type js_string = object ... end
class type regExp = object ... end
class type string_constr = object ... end
val string_constr : string_constr t
val regExp : (js_string t -> regExp t) constr
val regExp_withFlags : (js_string t -> js_string t -> regExp t) constr
val regExp_copy : (regExp t -> regExp t) constr
class type !'a js_array = object ... end
val object_keys : 'a t -> js_string t js_array t
val array_empty : 'a js_array t constr
val array_length : (int -> 'a js_array t) constr
val array_get : 'a js_array t -> int -> 'a optdef
val array_set : 'a js_array t -> int -> 'a -> unit
val array_map : ('a -> 'b) -> 'a js_array t -> 'b js_array t
val array_mapi : (int -> 'a -> 'b) -> 'a js_array t -> 'b js_array t
class type match_result = object ... end
val str_array : string_array t -> js_string t js_array t
val match_result : match_result_handle t -> match_result t
class type number = object ... end
val number_of_float : float -> number t
val float_of_number : number t -> float
class type date = object ... end
val date_now : date t constr
val date_fromTimeValue : (float -> date t) constr
val date_month : (int -> int -> date t) constr
val date_day : (int -> int -> int -> date t) constr
val date_hour : (int -> int -> int -> int -> date t) constr
val date_min : (int -> int -> int -> int -> int -> date t) constr
val date_sec : (int -> int -> int -> int -> int -> int -> date t) constr
val date_ms : (int -> int -> int -> int -> int -> int -> int -> date t) constr
class type date_constr = object ... end
val date : date_constr t
class type math = object ... end
val math : math t
class type error = object ... end
val error_constr : (js_string t -> error t) constr
val string_of_error : error t -> string
val raise_js_error : error t -> 'a
exception Error of error t
class type json = object ... end
val _JSON : json t
val decodeURI : js_string t -> js_string t
val decodeURIComponent : js_string t -> js_string t
val encodeURI : js_string t -> js_string t
val encodeURIComponent : js_string t -> js_string t
val escape : js_string t -> js_string t
val unescape : js_string t -> js_string t
val isNaN : 'a -> bool
val parseInt : js_string t -> int
val parseFloat : js_string t -> float
val bool : bool -> bool t
val to_bool : bool t -> bool
val string : string -> js_string t
val to_string : js_string t -> string
val array : 'a array -> 'a js_array t
val to_array : 'a js_array t -> 'a array
val bytestring : string -> js_string t
val to_bytestring : js_string t -> string
val coerce : 'a -> ('a -> 'b Opt.t) -> ('a -> 'b) -> 'b
val coerce_opt : 'a Opt.t -> ('a -> 'b Opt.t) -> ('a -> 'b) -> 'b
val typeof : 'a t -> js_string t
val instanceof : 'a t -> 'b constr -> bool
val debugger : unit -> unit
val export : string -> 'a -> unit
val export_all : 'a t -> unit
module Unsafe : sig ... end
val float : float -> float
val to_float : float -> float
type float_prop = float prop
OCaml

Innovation. Community. Security.