I have an action in an action group defined like so:
createLearner: props<{ learner: Learner; case: Case }>,
In my reducer, I try to do the following:
on(PeopleActions.createLearner, (state, action) => {
return caseAdapter.addOne(action.case, state);
})
However, TS does not recognize case as a valid member of the action. On introspection, there are the following properties of createLearner: type, _as and _p
None of these choices resemble any of the examples I've seen from extracting props from an action.
I've also tried (state, {case}) and (state, {case, learner}), both of which fail for the obvious reason - neither of these properties are recognized by TS as part of the type.
What am I doing wrong?