package vue-jsoo

  1. Overview
  2. Docs

internal JS module

class type mutation_js = object ... end
class type ['state, 'getters] action_input_js = object ... end
class type ['state, 'getters] action_input_module = object ... end
class type 'state cs_options_base = object ... end
class type ['state, 'getters] dynamic_cs_options = object ... end
class type ['state, 'getters] cs_options = object ... end
class type root_options = object ... end
class type 'state instance_js = object ... end
type ('state, 'getters) vuex_cs = (('state, 'getters) cs_options Mjs.t -> 'state instance_js Mjs.t) Mjs.constr
class type vuex = object ... end
type ('state, 'getters) options = {
  1. o_state : 'state Mjs.t;
  2. o_getters : ('state Mjs.t -> Mjs.any) Mjs.table_cons;
  3. mutations : ('state Mjs.t -> Mjs.any -> unit) Mjs.table_cons;
  4. actions : (('state, 'getters) action_input -> Mjs.any -> unit) Mjs.table_cons;
  5. plugins : Mjs.any list option;
  6. strict : bool option;
  7. devtools : bool option;
  8. modules : (Mjs.top, Mjs.top) dynamic_cs_options Mjs.t Mjs.table_cons;
  9. namespaced : bool option;
}

store constructor options

val make : ('state, 'getters) cs_options Mjs.t -> 'state instance_js Mjs.t
val to_action_input : ('state, 'getters) action_input_js Mjs.t -> ('state, 'getters) action_input
val to_action_input_module : ('state, 'getters) action_input_module Mjs.t -> ('state, 'getters) action_input
val of_dynamic_options : ('state, 'getters) options -> ('state, 'getters) dynamic_cs_options Mjs.t
val of_options : ('state, 'getters) options -> ('state, 'getters) cs_options Mjs.t
val of_root_options : bool option -> root_options Mjs.t Mjs.optdef
val to_mutation : mutation_js Mjs.t -> 'a mutation
OCaml

Innovation. Community. Security.