File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/node_modules/overmind-react/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 55 Overmind ,
66 OvermindMock ,
77} from 'overmind'
8+ import 'proxy-state-tree'
89import {
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
2628const IS_PRODUCTION = process . env . NODE_ENV === 'production'
2729const 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 (
You can’t perform that action at this time.
0 commit comments