package ppx_jsobject_conv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type jsfunction = Js.Unsafe.any Js.t
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.t -> ('a Js.t, string) Stdlib.result
val is_array : 'b Js.t -> ('a Js.t Js.js_array Js.t, string) Stdlib.result
val is_array_of_size_n : 'a Js.t -> int -> ('b Js.t Js.js_array Js.t, string) Stdlib.result
val array_get_ind : 'a Js.js_array Js.t -> int -> ('a, string) Stdlib.result
val object_get_key : 'a Js.t -> string -> ('a 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.t -> (bool, string) Stdlib.result
val unit_of_jsobject : 'a Js.t -> (unit, string) Stdlib.result
val int_of_jsobject : 'a Js.t -> (int, string) Stdlib.result
val float_of_jsobject : 'a Js.t -> (float, string) Stdlib.result
val string_of_jsobject : 'a 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.t -> ('b, string) Stdlib.result) -> 'c Js.t -> ('b list, string) Stdlib.result
val array_of_jsobject : ('a Js.t -> ('b, string) Stdlib.result) -> 'c Js.t -> ('b array, string) Stdlib.result
val object_get_sole_key : 'a Js.t -> (string, string) Stdlib.result
val jsfunction_of_jsobject : 'a Js.t -> (jsfunction, string) Stdlib.result
val jst_of_jsobject : 'a Js.t -> ('b Js.t, string) Stdlib.result
val jsany_of_jsobject : 'a Js.t -> (Js.Unsafe.any, string) Stdlib.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.