8000 fix: export missing `storeKey` · vuejs/vuex@4ab2947 · GitHub
[go: up one dir, main page]

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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 3 additions & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 0 deletions
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)
0