package vue-jsoo

  1. Overview
  2. Docs

internal JS module

class type mutation_js = object ... end
class type 'state action_input_js = object ... end
class type 'state action_input_module = object ... end
class type 'state cs_options_base = object ... end
class type 'state dynamic_cs_options = object ... end
class type 'state cs_options = object ... end
class type root_options = object ... end
class type 'state instance_js = object ... end
type 'state vuex_cs = ('state cs_options Mjs.t -> 'state instance_js Mjs.t) Mjs.constr
class type vuex = object ... end
type 'state 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 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 dynamic_cs_options Mjs.t Mjs.table_cons;
  9. namespaced : bool option;
}

store constructor options

val make : 'state cs_options Mjs.t -> 'state instance_js Mjs.t
val to_action_input : 'state action_input_js Mjs.t -> 'state action_input
val to_action_input_module : 'state action_input_module Mjs.t -> 'state action_input
val of_dynamic_options : 'state options -> 'state dynamic_cs_options Mjs.t
val of_options : 'state options -> 'state 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.