package vue-jsoo

  1. Overview
  2. Docs

Parameters

module S : sig ... end

Signature

include Tables_S with type state = S.state with type getters = S.getters
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 Stdlib.ref
val mutations_to_methods : string list Stdlib.ref
val actions_to_methods : string list Stdlib.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
val init : ?plugins:Mjs.any list -> ?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 -> ?strict:bool -> ?devtools:bool -> state Mjs.t -> state store Mjs.t
val store : unit -> state store Mjs.t
OCaml

Innovation. Community. Security.