Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TMutate,
TReaction,
} from 'overmind'
import createConnect, { TConnect } from 'overmind-react'
import * as actions from './actions'
import * as context from './context'
import * as state from './state'
const config = {
context,
actions,
state,
}
const app = new App(config)
export type Connect = TConnect
export const connect = createConnect(app)
type IApp = TApp
export default app
// ==== The following types are copied from overmind documentation ====
export type Action = TAction<
IApp,
Value,
ReturnValue
>