File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -378,13 +378,13 @@ export interface Slice<
378
378
* Action creators for the types of actions that are handled by the slice
379
379
* reducer.
380
380
*/
381
- actions : CaseReducerActions < CaseReducers , Name >
381
+ actions : CaseReducerActions < CaseReducers , Name , State >
382
382
383
383
/**
384
384
* The individual case reducer functions that were passed in the `reducers` parameter.
385
385
* This enables reuse and testing if they were defined inline when calling `createSlice`.
386
386
*/
387
- caseReducers : SliceDefinedCaseReducers < CaseReducers , Name >
387
+ caseReducers : SliceDefinedCaseReducers < CaseReducers , Name , State >
388
388
389
389
/**
390
390
* Provides access to the initial state value given to the slice.
@@ -750,10 +750,11 @@ export type CaseReducerActions<
750
750
| SliceCaseReducers < any >
751
751
| Record < string , ReducerDefinition > ,
752
752
SliceName extends string ,
753
+ State = any ,
753
754
> = Id <
754
755
UnionToIntersection <
755
756
SliceReducerCreators <
756
- any ,
757
+ State ,
757
758
CaseReducers ,
758
759
SliceName
759
760
> [ RegisteredReducerType ] [ 'actions' ]
@@ -795,10 +796,11 @@ type SliceDefinedCaseReducers<
795
796
| SliceCaseReducers < any >
796
797
| Record < string , ReducerDefinition > ,
797
798
SliceName extends string = string ,
799
+ State = any ,
798
800
> = Id <
799
801
UnionToIntersection <
800
802
SliceReducerCreators <
801
- any ,
803
+ State ,
802
804
CaseReducers ,
803
805
SliceName
804
806
> [ RegisteredReducerType ] [ 'caseReducers' ]
You can’t perform that action at this time.
0 commit comments