Used on a SliceCaseReducers object.
Ensures that if a CaseReducer is a CaseReducerWithPrepare, that
the reducer and the prepare function use the same type of payload.
Might do additional such checks in the future.
This type is only ever useful if you want to write your own wrapper around
createSlice. Please don't use it otherwise!
Used on a SliceCaseReducers object. Ensures that if a CaseReducer is a
CaseReducerWithPrepare
, that thereducer
and theprepare
function use the same type ofpayload
.Might do additional such checks in the future.
This type is only ever useful if you want to write your own wrapper around
createSlice
. Please don't use it otherwise!