Skip to content

Commit 4566327

Browse files
fix(overmind-angular): fix connect typing
1 parent 6be8b99 commit 4566327

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import { EventType, Overmind, TApp, Configuration } from 'overmind'
22

33
// @ts-ignore
44
import { NgZone } from '@angular/core'
5+
import { IMutation } from 'proxy-state-tree'
56

67
export type TConnect<Config extends Configuration> = {
7-
overmind: {
8-
state: TApp<Config>['state']
9-
actions: TApp<Config>['actions']
10-
}
8+
state: TApp<Config>['state']
9+
actions: TApp<Config>['actions']
10+
addMutationListener: (cb: (mutation: IMutation) => void) => () => void
1111
}
1212

1313
let nextComponentId = 0

0 commit comments

Comments
 (0)