package ppx_jsobject_conv

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

of_jsobject

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

jsobject_of

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

Innovation. Community. Security.