Skip to content

Commit 4ab2947

Browse files
committed
fix: export missing storeKey
1 parent f182522 commit 4ab2947

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/index.cjs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { Store, createStore } from './store'
2-
import { useStore } from './injectKey'
2+
import { storeKey, useStore } from './injectKey'
33
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from './helpers'
44
import { createLogger } from './plugins/logger'
55

66
export default {
77
version: '__VERSION__',
88
Store,
9+
storeKey,
910
createStore,
1011
useStore,
1112
mapState,

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { Store, createStore } from './store'
2-
import { useStore } from './injectKey'
2+
import { storeKey, useStore } from './injectKey'
33
import { mapState, mapMutations, mapGetters, mapActions, createNamespacedHelpers } from './helpers'
44
import { createLogger } from './plugins/logger'
55

66
export default {
77
version: '__VERSION__',
88
Store,
9+
storeKey,
910
createStore,
1011
useStore,
1112
mapState,
@@ -18,6 +19,7 @@ export default {
1819

1920
export {
2021
Store,
22+
storeKey,
2123
createStore,
2224
useStore,
2325
mapState,

src/index.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Vuex from '../dist/vuex.cjs.js'
33
const {
44
version,
55
Store,
6+
storeKey,
67
createStore,
78
install,
89
useStore,
@@ -18,6 +19,7 @@ export {
1819
Vuex as default,
1920
version,
2021
Store,
22+
storeKey,
2123
createStore,
2224
install,
2325
useStore,

types/index.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export declare class Store<S> {
4343
}): void;
4444
}
4545

46+
export const storeKey: string;
47+
4648
export function createStore<S>(options: StoreOptions<S>): Store<S>;
4749

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

0 commit comments

Comments
 (0)