@owlsdepartment/vuex-typed
Version:
Package for writing typed Vuex store with component helpers
6 lines (5 loc) • 680 B
TypeScript
import { ActionsDef, GettersDef, StateDef } from "../typings/index";
import { ObjectWithMethods } from "../typings/types";
export declare function defineActions<State extends StateDef, A extends ActionsDef<State>>(state: State, actions: A): A;
export declare function defineActions<State extends StateDef, Getters extends GettersDef<State>, A extends ActionsDef<State, Getters>>(state: State, getters: Getters, actions: A): A;
export declare function defineActions<State extends StateDef, Getters extends GettersDef<State>, Mutations extends ObjectWithMethods, A extends ActionsDef<State, Getters, Mutations>>(state: State, getters: Getters, mutations: Mutations, actions: A): A;