- Update the way to use the data records on Vuex with Getters!
- Fix: mongodb call passing array todos and categiroes already splitted
This commit is contained in:
24
src/typings/index.d.ts
vendored
Normal file
24
src/typings/index.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
export interface ActionTree<S, R> {
|
||||
[key: string]: Action<S, R>;
|
||||
}
|
||||
|
||||
export interface GetterTree<S, R> {
|
||||
[key: string]: Getter<S, R>;
|
||||
}
|
||||
|
||||
export interface MutationTree<S> {
|
||||
[key: string]: Mutation<S>;
|
||||
}
|
||||
export interface ModuleTree<S> {
|
||||
[key: string]: Module<S>;
|
||||
}
|
||||
|
||||
|
||||
export interface Module<S, R> {
|
||||
namespaced?: boolean;
|
||||
state?: S | (() => S);
|
||||
getters?: GetterTree<S, R>;
|
||||
actions?: ActionTree<S, R>;
|
||||
mutations?: MutationTree<S>;
|
||||
modules?: ModuleTree<R>;
|
||||
}
|
||||
Reference in New Issue
Block a user