فهرست منبع

fix module namespaced option typing

Evan You 8 سال پیش
والد
کامیت
220e193470
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      types/index.d.ts

+ 1 - 1
types/index.d.ts

@@ -84,7 +84,7 @@ export type Mutation<S> = (state: S, payload: any) => any;
 export type Plugin<S> = (store: Store<S>) => any;
 export type Plugin<S> = (store: Store<S>) => any;
 
 
 export interface Module<S, R> {
 export interface Module<S, R> {
-  namespace?: string;
+  namespaced?: boolean;
   state?: S;
   state?: S;
   getters?: GetterTree<S, R>;
   getters?: GetterTree<S, R>;
   actions?: ActionTree<S, R>;
   actions?: ActionTree<S, R>;