package vue-jsoo

  1. Overview
  2. Docs

Parameters

module S : sig ... end

Signature

type state = S.state
type getters = S.getters
val getters_t : (state Mjs.t -> Mjs.any) Mjs.Table.t
val mutations_t : (state Mjs.t -> Mjs.any -> unit) Mjs.Table.t
val getters_to_computed : string list ref
val mutations_to_methods : string list ref
val actions_to_methods : string list ref
val add_getter : ?computed:bool -> string -> (state Mjs.t -> 'a) -> unit
val add_mutation : ?methods:bool -> string -> (state Mjs.t -> 'a -> unit) -> unit
val add_action : ?methods:bool -> string -> ((state, getters) action_input -> 'a -> unit) -> unit
val add_module : string -> ('a, 'b) module_obj Mjs.t -> unit
val merge_lists : ?getters:(string * (state Mjs.t -> Mjs.any)) list -> ?mutations:(string * (state Mjs.t -> Mjs.any -> unit)) list -> ?actions:(string * ((state, getters) action_input -> Mjs.any -> unit)) list -> ?modules:(string * (Mjs.top, Mjs.top) module_obj Mjs.t) list -> unit -> unit
OCaml

Innovation. Community. Security.