package vdom

  1. Overview
  2. Docs
val decode : ?extra_fields:(string * Ojs.t) list -> 'a Vdom.Decoder.t -> Ojs.t -> ('a, string) Stdlib.Result.t

Evaluate and run a decoder. Returns `Error` in case of error. If specified, `extra_fields` are fields artificially accessible from the object's root.

OCaml

Innovation. Community. Security.