(
actions: Actions,
modelContext: { modelName: string }
)
| 39 | } |
| 40 | |
| 41 | const consumerActions = ( |
| 42 | actions: Actions, |
| 43 | modelContext: { modelName: string } |
| 44 | ) => { |
| 45 | const ret: any = {} |
| 46 | Object.keys(actions).forEach((key) => { |
| 47 | // @ts-ignore |
| 48 | ret[key] = consumerAction(actions[key], modelContext) |
| 49 | }) |
| 50 | return ret |
| 51 | } |
| 52 | |
| 53 | const setPartialState = ( |
| 54 | name: keyof typeof Global['State'], |
no test coverage detected
searching dependent graphs…