Library
Module
Module type
Parameter
Class
Class type
Binding with JS values.
val string_of_js : t -> string
val string_to_js : string -> t
val int_of_js : t -> int
val int_to_js : int -> t
val bool_of_js : t -> bool
val bool_to_js : bool -> t
val float_of_js : t -> float
val float_to_js : float -> t
val unit_of_js : t -> unit
val unit_to_js : unit -> t
Wrap an OCaml function of known arity (>=1) into a JS function. Extra arguments are discarded and missing argument are filled with 'undefined'.
val delete : t -> string -> unit
Get the property from an object (only works if the property key is a plain ascii string).
Set an object property (only works if the property key is a plain ascii string).
val delete_prop_ascii : t -> string -> unit
Delete an object property (only works if the property key is a plain ascii string).
val empty_obj : unit -> t
val has_property : t -> string -> bool
val iter_properties : t -> (string -> unit) -> unit
Variant of Ojs.call
where the arguments are passed as an already built JS array.
Variant of Ojs.apply
where the arguments are passed as an already built JS array.
Variant of Ojs.new_obj
where the arguments are passed as an already built JS array.
val array_make : int -> t
val global : t
val null : t
val variable : string -> t
val type_of : t -> string
val is_null : t -> bool
val obj_type : t -> string
Returns: "object Array
" "object Object
" "object Number
" "object String
" "object Null
" "object Boolean
"
module type T = sig ... end