(
action: Action,
modelContext: { modelName: string }
)
| 21 | } |
| 22 | |
| 23 | const consumerAction = ( |
| 24 | action: Action, |
| 25 | modelContext: { modelName: string } |
| 26 | ) => async (params: any, middlewareConfig?: any) => { |
| 27 | const context: InnerContext = { |
| 28 | Global, |
| 29 | action, |
| 30 | actionName: action.name, |
| 31 | consumerActions, |
| 32 | middlewareConfig, |
| 33 | modelName: modelContext.modelName, |
| 34 | newState: null, |
| 35 | params, |
| 36 | type: 'o' |
| 37 | } |
| 38 | return await applyMiddlewares(actionMiddlewares, context) |
| 39 | } |
| 40 | |
| 41 | const consumerActions = ( |
| 42 | actions: Actions, |
no test coverage detected
searching dependent graphs…