Module Js_min
include Js_of_ocaml.Js
module type OPT = sig ... end
type 'a t
= 'a Js_of_ocaml__Js.t
type 'a meth
= 'a Js_of_ocaml__Js.meth
type 'a gen_prop
= 'a Js_of_ocaml__Js.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
= 'a Js_of_ocaml__Js.constr
type ('a, 'b) meth_callback
= ('a, 'b) Js_of_ocaml__Js.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
type match_result_handle
= Js_of_ocaml__Js.match_result_handle
type string_array
= Js_of_ocaml__Js.string_array
class type js_string = object ... end
and 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
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
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
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
type float_prop
= float prop
type ('a, 'b) result
= ('a, 'b) Stdlib.result
=
|
Ok of 'a
|
Error of 'b
type window
= Dom_html.window
val to_arrayf : ('a -> 'b) -> 'a js_array t -> 'b array
val of_arrayf : ('a -> 'b) -> 'a array -> 'b js_array t
val to_list : 'a js_array t -> 'a list
val of_list : 'a list -> 'a js_array t
val to_listf : ('a -> 'b) -> 'a js_array t -> 'b list
val of_listf : ('a -> 'b) -> 'a list -> 'b js_array t
val optdef : ('a -> 'b) -> 'a option -> 'b optdef
val to_optdef : ('a -> 'b) -> 'a Optdef.t -> 'b option
val unoptdef_f : 'a -> ('b -> 'a) -> 'b Optdef.t -> 'a
val unoptdef : 'a -> 'a Optdef.t -> 'a
val convdef : ('a -> 'b) -> 'a Optdef.t -> 'b optdef
val to_opt : ('a -> 'b) -> 'a Opt.t -> 'b option
val opt : ('a -> 'b) -> 'a option -> 'b opt
val convopt : ('a -> 'b) -> 'a Opt.t -> 'b opt
val js_log : 'a -> unit
val log_str : string -> unit
val log : ('a, Stdlib.Format.formatter, unit, unit) Stdlib.format4 -> 'a