package ppx_jsobject_conv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val (>|=) : ('a, 'b) Stdlib.result -> ('a -> 'c) -> ('c, 'b) Stdlib.result
val (>>=) : ('a, 'b) Stdlib.result -> ('a -> ('c, 'b) Stdlib.result) -> ('c, 'b) Stdlib.result
val (>*=) : ('a, 'b) Stdlib.result -> ('b -> 'c) -> ('a, 'c) Stdlib.result
val concat_error_messages : string -> string -> string
val throw_js_error : string -> 'a

of_jsobject

val is_object : 'a Js_of_ocaml.Js.t -> ('a Js_of_ocaml.Js.t, string) Stdlib.result
val is_array : 'b Js_of_ocaml.Js.t -> ('a Js_of_ocaml.Js.t Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t, string) Stdlib.result
val is_array_of_size_n : 'a Js_of_ocaml.Js.t -> int -> ('b Js_of_ocaml.Js.t Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t, string) Stdlib.result
val array_get_ind : 'a Js_of_ocaml.Js.js_array Js_of_ocaml.Js.t -> int -> ('a, string) Stdlib.result
val object_get_key : 'a Js_of_ocaml.Js.t -> string -> ('a Js_of_ocaml.Js.t, string) Stdlib.result
val defined_or_error : 'a -> ('a, string) Stdlib.result
val defined_or_default : ('a -> ('b, 'c) Stdlib.result) -> 'b -> 'a -> ('b, 'c) Stdlib.result
val convert_or_default : ('a -> ('b, 'c) Stdlib.result) -> 'b -> 'a -> ('b, 'd) Stdlib.result
val bool_of_jsobject : 'a Js_of_ocaml.Js.t -> (bool, string) Stdlib.result
val unit_of_jsobject : 'a Js_of_ocaml.Js.t -> (unit, string) Stdlib.result
val int_of_jsobject : 'a Js_of_ocaml.Js.t -> (int, string) Stdlib.result
val float_of_jsobject : 'a Js_of_ocaml.Js.t -> (float, string) Stdlib.result
val string_of_jsobject : 'a Js_of_ocaml.Js.t -> (string, string) Stdlib.result
val option_of_jsobject : ('a -> ('b, 'c) Stdlib.result) -> 'a -> ('b option, 'c) Stdlib.result
val list_of_jsobject : ('a Js_of_ocaml.Js.t -> ('b, string) Stdlib.result) -> 'c Js_of_ocaml.Js.t -> ('b list, string) Stdlib.result
val array_of_jsobject : ('a Js_of_ocaml.Js.t -> ('b, string) Stdlib.result) -> 'c Js_of_ocaml.Js.t -> ('b array, string) Stdlib.result
val object_get_sole_key : 'a Js_of_ocaml.Js.t -> (string, string) Stdlib.result
val jsfunction_of_jsobject : 'a Js_of_ocaml.Js.t -> (jsfunction, string) Stdlib.result
val jst_of_jsobject : 'a Js_of_ocaml.Js.t -> ('b Js_of_ocaml.Js.t, string) Stdlib.result
val jsany_of_jsobject : 'a Js_of_ocaml.Js.t -> (Js_of_ocaml.Js.Unsafe.any, string) Stdlib.result
val to_js_array : 'a list -> 'b Js_of_ocaml.Js.t

jsobject_of

val make_jsobject : (string * 'm Js_of_ocaml.Js.t) array -> 'a Js_of_ocaml.Js.t
val make_jsobject_of_some : (string * 'm Js_of_ocaml.Js.t) option array -> 'a Js_of_ocaml.Js.t
val jsobject_of_bool : bool -> 'm Js_of_ocaml.Js.t
val jsobject_of_int : int -> 'm Js_of_ocaml.Js.t
val jsobject_of_unit : unit -> 'm Js_of_ocaml.Js.t
val jsobject_of_string : string -> 'm Js_of_ocaml.Js.t
val jsobject_of_float : float -> 'm Js_of_ocaml.Js.t
val jsobject_of_option : ('a -> 'm Js_of_ocaml.Js.t) -> 'a option -> 'm Js_of_ocaml.Js.t
val jsobject_of_list : ('a -> 'm Js_of_ocaml.Js.t) -> 'a list -> 'n Js_of_ocaml.Js.t
val jsobject_of_array : ('a -> 'm Js_of_ocaml.Js.t) -> 'a array -> 'n Js_of_ocaml.Js.t
val jsobject_of_jsfunction : jsfunction -> 'm Js_of_ocaml.Js.t
val jsobject_of_jst : 'a Js_of_ocaml.Js.t -> 'm Js_of_ocaml.Js.t
val jsobject_of_jsany : 'm Js_of_ocaml.Js.t -> 'm Js_of_ocaml.Js.t
OCaml

Innovation. Community. Security.