File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 11import { Configuration } from './'
22import { 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-
94interface 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 : [ ] ,
You can’t perform that action at this time.
0 commit comments