Module Value.Util

val null : t
val array : t list -> t
val array_of : ('a -> t) -> 'a list -> t
val bool : bool -> t
val bytes : bytes -> t
val int : int64 -> t
val map : (Stdlib.String.t * t) list -> t
val cid : Cid.t -> t
val text : string -> t
val option_of : ('a -> t) -> 'a option -> t
type conv_error = {
  1. msg : string;
  2. value : t;
  3. path : string list;
}
val show_conv_error : conv_error -> Ppx_deriving_runtime.string
exception Conv_error of conv_error
val conv_error : conv_error -> 'a
val try_with : (unit -> 'a) -> ('a, conv_error) result
type 'a conv = t -> 'a
val to_array : t list conv
val to_array_of : 'a conv -> 'a list conv
val to_option_of : 'a conv -> 'a option conv
val to_bool : bool conv
val to_bytes : bytes conv
val to_int : int64 conv
val to_map : (string * t) list conv
val to_null : unit conv
val to_cid : Cid.t conv
val to_text : string conv
val get_key_exn : string -> (t -> 'a) -> t -> 'a
val get_key_nullable_exn : string -> (t -> 'a) -> t -> 'a option
val get_type_key_exn : string conv

Access the "$type" key

val get_key_not_required_exn : string -> (t -> 'a) -> t -> 'a option