Skip to content

Commit

Permalink
fix: export missing storeKey
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed Jan 26, 2021
1 parent f182522 commit 4ab2947
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.cjs.js
@@ -1,11 +1,12 @@
import { Store, createStore } from './store'
import { useStore } from './injectKey'
import { storeKey, useStore } from './injectKey'
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from './helpers'
import { createLogger } from './plugins/logger'

export default {
version: '__VERSION__',
Store,
storeKey,
createStore,
useStore,
mapState,
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
@@ -1,11 +1,12 @@
import { Store, createStore } from './store'
import { useStore } from './injectKey'
import { storeKey, useStore } from './injectKey'
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from './helpers'
import { createLogger } from './plugins/logger'

export default {
version: '__VERSION__',
Store,
storeKey,
createStore,
useStore,
mapState,
Expand All @@ -18,6 +19,7 @@ export default {

export {
Store,
storeKey,
createStore,
useStore,
mapState,
Expand Down
2 changes: 2 additions & 0 deletions src/index.mjs
Expand Up @@ -3,6 +3,7 @@ import Vuex from '../dist/vuex.cjs.js'
const {
version,
Store,
storeKey,
createStore,
install,
useStore,
Expand All @@ -18,6 +19,7 @@ export {
Vuex as default,
version,
Store,
storeKey,
createStore,
install,
useStore,
Expand Down
2 changes: 2 additions & 0 deletions types/index.d.ts
Expand Up @@ -43,6 +43,8 @@ export declare class Store<S> {
}): void;
}

export const storeKey: string;

export function createStore<S>(options: StoreOptions<S>): Store<S>;

export function useStore<S = any>(injectKey?: InjectionKey<Store<S>> | string): Store<S>;
Expand Down

0 comments on commit 4ab2947

Please sign in to comment.