Skip to content

Commit 340f364

Browse files
fix(overmind-react): fix typing issue
1 parent 7b1d001 commit 340f364

File tree

1 file changed

+6
-6
lines changed
  • packages/node_modules/overmind-react/src

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ type Omit<T, K extends keyof T> = Pick<
4040

4141
export interface IConnect<Config extends IConfiguration> {
4242
overmind: {
43-
state: IContext<Config, any>['state']
44-
actions: IContext<Config, any>['actions']
45-
effects: IContext<Config, any>['effects']
43+
state: IContext<Config>['state']
44+
actions: IContext<Config>['actions']
45+
effects: IContext<Config>['effects']
4646
addMutationListener: (cb: (mutation: IMutation) => void) => () => void
4747
}
4848
}
@@ -59,9 +59,9 @@ export const Provider: React.ProviderExoticComponent<
5959
export const createHook = <Config extends IConfiguration>(
6060
overmindInstance?: Overmind<Config>
6161
): (() => {
62-
state: IContext<Config, any>['state']
63-
actions: IContext<Config, any>['actions']
64-
effects: IContext<Config, any>['effects']
62+
state: IContext<Config>['state']
63+
actions: IContext<Config>['actions']
64+
effects: IContext<Config>['effects']
6565
addMutationListener: (cb: (mutation: IMutation) => void) => () => void
6666
}) => {
6767
let currentComponentInstanceId = 0

0 commit comments

Comments
 (0)