Jelajahi Sumber

fix module namespaced option typing

Evan You 8 tahun lalu
induk
melakukan
220e193470
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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>;