package ppx_jsobject_conv

  1. Overview
  2. Docs

Module Ppx_jsobject_conv_runtimeSource

Sourceval (>|=) : ('a, 'b) result -> ('a -> 'c) -> ('c, 'b) result
Sourceval (>>=) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
Sourceval (>*=) : ('a, 'b) result -> ('b -> 'c) -> ('a, 'c) result
Sourceval concat_error_messages : string -> string -> string
Sourceval throw_js_error : string -> 'a

of_jsobject

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

jsobject_of

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

Innovation. Community. Security.