|
@@ -79,7 +79,7 @@ export interface CommitOptions {
|
|
}
|
|
}
|
|
|
|
|
|
export interface StoreOptions<S> {
|
|
export interface StoreOptions<S> {
|
|
- state?: S;
|
|
|
|
|
|
+ state?: S | (() => S);
|
|
getters?: GetterTree<S, S>;
|
|
getters?: GetterTree<S, S>;
|
|
actions?: ActionTree<S, S>;
|
|
actions?: ActionTree<S, S>;
|
|
mutations?: MutationTree<S>;
|
|
mutations?: MutationTree<S>;
|