package vue-jsoo

  1. Overview
  2. Docs

SPA Functor

Parameters

module S : sig ... end

Signature

type data = S.data
include Vuex.Module_S with type state = S.state and type getters = S.getters
include Vuex.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) Vuex.action_input -> 'a -> unit) -> unit
val add_module : string -> ('a, 'b) Vuex.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) Vuex.action_input -> Mjs.any -> unit)) list -> ?modules:(string * (Mjs.top, Mjs.top) Vuex.module_obj Mjs.t) list -> unit -> unit
val get : ?getters:(string * (state Mjs.t -> Mjs.any)) list -> ?mutations:(string * (state Mjs.t -> Mjs.any -> unit)) list -> ?actions: (string * ((state, getters) Vuex.action_input -> Mjs.any -> unit)) list -> ?modules:(string * (Mjs.top, Mjs.top) Vuex.module_obj Mjs.t) list -> ?namespaced:bool -> state Mjs.t -> (state, getters) Vuex.module_obj Mjs.t
include Vue_component.Tables_S with type all = S.all
type all = S.all
val methods_t : Mjs.any Mjs.table
val watch_t : (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any) Mjs.table
val computed_t : (all Mjs.t -> Mjs.any Mjs.optdef) Mjs.table
val add_method : string -> (all Mjs.t -> 'a) -> unit
val add_method0 : string -> (all Mjs.t -> 'a) -> unit
val add_method1 : string -> (all Mjs.t -> 'a -> 'b) -> unit
val add_method2 : string -> (all Mjs.t -> 'a -> 'b -> 'c) -> unit
val add_method3 : string -> (all Mjs.t -> 'a -> 'b -> 'c -> 'd) -> unit
val add_method4 : string -> (all Mjs.t -> 'a -> 'b -> 'c -> 'd -> 'e) -> unit
val add_watch : string -> (all Mjs.t -> 'a -> 'a -> 'b) -> unit
val add_computed : string -> (all Mjs.t -> 'a Mjs.optdef) -> unit
val add_2way_computed : string -> get:(all Mjs.t -> 'a Mjs.optdef) -> set:(all Mjs.t -> 'b -> unit) -> unit
val add_component : string -> ('a, 'b) Vue_component.Internal.component_arg Mjs.t -> unit
val merge_lists_component : ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> unit -> unit
include Vue_router.Tables_S
val routes_t : (Mjs.top, Mjs.top) Vue_router.route Mjs.t list Stdlib.ref
val add_route : ('a, 'b) Vue_router.route Mjs.t -> unit
val merge_routes : ?routes:(Mjs.top, Mjs.top) Vue_router.route Mjs.t list -> unit -> unit
val add_2way : ?prefix:string -> string -> unit
val init : ?getters:(string * (state Mjs.t -> Mjs.any)) list -> ?mutations:(string * (state Mjs.t -> Mjs.any -> unit)) list -> ?actions: (string * ((state, getters) Vuex.action_input -> Mjs.any -> unit)) list -> ?modules:(string * (Mjs.top, Mjs.top) Vuex.module_obj Mjs.t) list -> ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> ?children:(Mjs.top, Mjs.top) Vue_router.Internal.route Mjs.t list -> ?hook:(Vue_nav.push_obj -> Vue_nav.push_obj -> all Vue_nav.next) -> ?path:string -> ?data:data Mjs.t -> ?state:state Mjs.t -> ?state_to_computed:string list -> ?two_way:string list -> unit -> string * (state, getters) Vuex.module_obj Mjs.t * (data, all) Vue_router.Internal.route Mjs.t
val make : ?getters:(string * (state Mjs.t -> Mjs.any)) list -> ?mutations:(string * (state Mjs.t -> Mjs.any -> unit)) list -> ?actions: (string * ((state, getters) Vuex.action_input -> Mjs.any -> unit)) list -> ?modules:(string * (Mjs.top, Mjs.top) Vuex.module_obj Mjs.t) list -> ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> ?children:(Mjs.top, Mjs.top) Vue_router.Internal.route Mjs.t list -> ?hook:(Vue_nav.push_obj -> Vue_nav.push_obj -> all Vue_nav.next) -> ?path:string -> ?data:data Mjs.t -> ?state:state Mjs.t -> ?state_to_computed:string list -> ?two_way:string list -> unit -> string * (Mjs.top, Mjs.top) Vuex.module_obj Mjs.t * (Mjs.top, Mjs.top) Vue_router.route Mjs.t
val store : unit -> (state, getters) Vuex.module_obj Mjs.t
val route : unit -> (data, all) Vue_router.route Mjs.t
OCaml

Innovation. Community. Security.