Skip to content

Commit d67b92d

Browse files
fix(overmind-react): fix typing issue
1 parent 39c0288 commit d67b92d

File tree

1 file changed

+3
-1
lines changed
  • packages/node_modules/overmind-react/src

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
Overmind,
66
OvermindMock,
77
} from 'overmind'
8+
import 'proxy-state-tree'
89
import {
910
// @ts-ignore
1011
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
@@ -22,6 +23,7 @@ import {
2223
createContext,
2324
useContext,
2425
} from 'react'
26+
import { IMutationCallback } from 'proxy-state-tree'
2527

2628
const IS_PRODUCTION = process.env.NODE_ENV === 'production'
2729
const IS_TEST = process.env.NODE_ENV === 'test'
@@ -64,7 +66,7 @@ export const createHook = <Config extends IConfiguration>(
6466
state: Overmind<Config>['state']
6567
actions: Overmind<Config>['actions']
6668
effects: Overmind<Config>['effects']
67-
addMutationListener: Overmind<Config>['addMutationListener']
69+
addMutationListener: (cb: IMutationCallback) => () => void
6870
}) => {
6971
if (overmindInstance) {
7072
console.warn(

0 commit comments

Comments
 (0)