Skip to content

Commit 404d0de

Browse files
nulpatrolktsn
authored andcommitted
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
1 parent 3d3e4e0 commit 404d0de

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

types/index.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import _Vue, { WatchOptions } from "vue";
33
// augment typings of Vue.js
44
import "./vue";
55

6+
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from "./helpers";
7+
68
export * from "./helpers";
79

810
export declare class Store<S> {
@@ -129,5 +131,10 @@ export interface ModuleTree<R> {
129131
declare const _default: {
130132
Store: typeof Store;
131133
install: typeof install;
134+
mapState: typeof mapState,
135+
mapMutations: typeof mapMutations,
136+
mapGetters: typeof mapGetters,
137+
mapActions: typeof mapActions,
138+
createNamespacedHelpers: typeof createNamespacedHelpers,
132139
};
133140
export default _default;

0 commit comments

Comments
 (0)