From 0acfc52abe3defa41db51d87ad4512843c47cde6 Mon Sep 17 00:00:00 2001 From: Rostislav Khaniukov Date: Wed, 26 Sep 2018 14:10:42 +0300 Subject: [PATCH 1/2] Add helpers to default export type declaration as in sources --- types/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 4c4e43e64..7f953c3b7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,6 +3,8 @@ import _Vue, { WatchOptions } from "vue"; // augment typings of Vue.js import "./vue"; +import { mapActions, mapGetters, mapMutations, mapState } from "./helpers"; + export * from "./helpers"; export declare class Store { @@ -129,5 +131,9 @@ export interface ModuleTree { declare const _default: { Store: typeof Store; install: typeof install; + mapState: typeof mapState, + mapMutations: typeof mapMutations, + mapGetters: typeof mapGetters, + mapActions: typeof mapActions, }; export default _default; From 3e2d314c1665f83063908b06d7921ffd22768edc Mon Sep 17 00:00:00 2001 From: Rostislav Khaniukov Date: Thu, 27 Sep 2018 11:31:30 +0300 Subject: [PATCH 2/2] Add createNamespacedHelpers to default export type declaration --- types/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 7f953c3b7..b295dd88b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,7 +3,7 @@ import _Vue, { WatchOptions } from "vue"; // augment typings of Vue.js import "./vue"; -import { mapActions, mapGetters, mapMutations, mapState } from "./helpers"; +import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from "./helpers"; export * from "./helpers"; @@ -135,5 +135,6 @@ declare const _default: { mapMutations: typeof mapMutations, mapGetters: typeof mapGetters, mapActions: typeof mapActions, + createNamespacedHelpers: typeof createNamespacedHelpers, }; export default _default;