Skip to content

Commit cb91bc4

Browse files
fix(overmind): fix wrong typing on actions in modules
1 parent 40a03b0 commit cb91bc4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/node_modules/overmind/src/modules.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { Configuration } from './'
22
import { ResolveState, ResolveActions } from './internalTypes'
33

4-
type SubType<Base, Condition> = Pick<
5-
Base,
6-
{ [Key in keyof Base]: Base[Key] extends Condition ? Key : never }[keyof Base]
7-
>
8-
94
interface ConfigurationWithModules extends Configuration {
105
[namespace: string]: {
116
onInitialize?: any
@@ -43,7 +38,7 @@ export function modules<T extends ConfigurationWithModules>(
4338
onInitialize?: any
4439
state: { [P in keyof T]: ResolveState<T[P]['state']> }
4540
effects: { [P in keyof T]: T[P]['effects'] }
46-
actions: { [P in keyof T]: ResolveActions<T[P]['state']> }
41+
actions: { [P in keyof T]: ResolveActions<T[P]['actions']> }
4742
} {
4843
const result: any = {
4944
initializers: [],

0 commit comments

Comments
 (0)