@@ -352,9 +352,7 @@ interface InjectIntoConfig<NewReducerPath extends string> extends InjectConfig {
352
352
*/
353
353
export interface Slice <
354
354
State = any ,
355
- CaseReducers extends
356
- | SliceCaseReducers < State >
357
- | Record < string , ReducerDefinition > = SliceCaseReducers < State > ,
355
+ CaseReducers extends CreatorCaseReducers < State > = SliceCaseReducers < State > ,
358
356
Name extends string = string ,
359
357
ReducerPath extends string = Name ,
360
358
Selectors extends SliceSelectors < State > = SliceSelectors < State > ,
@@ -442,9 +440,7 @@ export interface Slice<
442
440
*/
443
441
interface InjectedSlice <
444
442
State = any ,
445
- CaseReducers extends
446
- | SliceCaseReducers < State >
447
- | Record < string , ReducerDefinition > = SliceCaseReducers < State > ,
443
+ CaseReducers extends CreatorCaseReducers < State > = SliceCaseReducers < State > ,
448
444
Name extends string = string ,
449
445
ReducerPath extends string = Name ,
450
446
Selectors extends SliceSelectors < State > = SliceSelectors < State > ,
@@ -746,9 +742,7 @@ export type SliceActionType<
746
742
* @public
747
743
*/
748
744
export type CaseReducerActions <
749
- CaseReducers extends
750
- | SliceCaseReducers < any >
751
- | Record < string , ReducerDefinition > ,
745
+ CaseReducers extends CreatorCaseReducers < State > ,
752
746
SliceName extends string ,
753
747
State = any ,
754
748
> = Id <
@@ -792,9 +786,7 @@ type ActionCreatorForCaseReducer<CR, Type extends string> = CR extends (
792
786
* @internal
793
787
*/
794
788
type SliceDefinedCaseReducers <
795
- CaseReducers extends
796
- | SliceCaseReducers < any >
797
- | Record < string , ReducerDefinition > ,
789
+ CaseReducers extends CreatorCaseReducers < State > ,
798
790
SliceName extends string = string ,
799
791
State = any ,
800
792
> = Id <
0 commit comments