Thanks for the great library!
Very possible I'm missing something here, but I can't get past this typescript error when I try to clean up the case reducers in createSlice by extracting a CaseReducerWithPrepare.
It works fine if it's just a CaseReducer.
I've reproduced the error in this example:
https://codesandbox.io/s/casereducerwithprepare-error-9ozw2?file=/src/store/todos.ts