Skip to content

Commit e107d04

Browse files
refactor(overmind-vue): fix Connect type
1 parent 28ee895 commit e107d04

File tree

1 file changed

+4
-4
lines changed
  • packages/node_modules/overmind-vue/src

1 file changed

+4
-4
lines changed

packages/node_modules/overmind-vue/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { TApp, EventType, Overmind, Configuration } from 'overmind'
22
import Vue, { ComponentOptions } from 'vue'
3+
import { IMutation } from 'proxy-state-tree'
34

45
export type TConnect<Config extends Configuration> = {
5-
overmind: {
6-
state: TApp<Config>['state']
7-
actions: TApp<Config>['actions']
8-
}
6+
state: TApp<Config>['state']
7+
actions: TApp<Config>['actions']
8+
addMutationListener: (cb: (mutation: IMutation) => void) => () => void
99
}
1010

1111
type DefaultData<V> = object | ((this: V) => object)

0 commit comments

Comments
 (0)