File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,6 @@ const defaults: FeathersVuexOptions = {
53
53
whitelist : [ ] // Custom query operators that will be allowed in the find getter.
54
54
}
55
55
56
- // Augment global models onto VueConstructor
57
- declare module 'vue' {
58
- interface VueConstructor {
59
- $FeathersVuex : FeathersVuexGlobalModels
60
- }
61
- }
62
-
63
56
export default function feathersVuex ( feathers , options : FeathersVuexOptions ) {
64
57
if ( ! feathers || ! feathers . service ) {
65
58
throw new Error (
Original file line number Diff line number Diff line change @@ -9,6 +9,17 @@ import FeathersVuexFormWrapper from '../FeathersVuexFormWrapper'
9
9
import FeathersVuexInputWrapper from '../FeathersVuexInputWrapper'
10
10
import FeathersVuexPagination from '../FeathersVuexPagination'
11
11
import { globalModels } from '../service-module/global-models'
12
+ import { FeathersVuexGlobalModels } from '../service-module/types'
13
+
14
+ // Augment global models onto VueConstructor and instance
15
+ declare module 'vue/types/vue' {
16
+ interface VueConstructor {
17
+ $FeathersVuex : FeathersVuexGlobalModels
18
+ }
19
+ interface Vue {
20
+ $FeathersVuex : FeathersVuexGlobalModels
21
+ }
22
+ }
12
23
13
24
export const FeathersVuex = {
14
25
install ( Vue , options = { components : true } ) {
You can’t perform that action at this time.
0 commit comments