Răsfoiți Sursa

fix(types): add helpers to default export type declaration as in sources (#1408)

* Add helpers to default export type declaration as in sources

* Add createNamespacedHelpers to default export type declaration
Rostyslav Khaniukov 6 ani în urmă
părinte
comite
404d0de953
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      types/index.d.ts

+ 7 - 0
types/index.d.ts

@@ -3,6 +3,8 @@ import _Vue, { WatchOptions } from "vue";
 // augment typings of Vue.js
 import "./vue";
 
+import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from "./helpers";
+
 export * from "./helpers";
 
 export declare class Store<S> {
@@ -129,5 +131,10 @@ export interface ModuleTree<R> {
 declare const _default: {
   Store: typeof Store;
   install: typeof install;
+  mapState: typeof mapState,
+  mapMutations: typeof mapMutations,
+  mapGetters: typeof mapGetters,
+  mapActions: typeof mapActions,
+  createNamespacedHelpers: typeof createNamespacedHelpers,
 };
 export default _default;