Browse Source

fix module namespaced option typing

Evan You 8 năm trước cách đây
mục cha
commit
220e193470
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 interface Module<S, R> {
-  namespace?: string;
+  namespaced?: boolean;
   state?: S;
   getters?: GetterTree<S, R>;
   actions?: ActionTree<S, R>;