Skip to content

Commit 0133506

Browse files
committed
use utility more
1 parent 02bbfba commit 0133506

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/toolkit/src/createSlice.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,9 +1160,7 @@ export function buildCreateSlice<
11601160

11611161
const slice: Slice<
11621162
State,
1163-
CaseReducers extends CreatorCallback<State, Name, ReducerPath, CreatorMap>
1164-
? ReturnType<CaseReducers>
1165-
: CaseReducers,
1163+
GetCaseReducers<CaseReducers>,
11661164
Name,
11671165
ReducerPath,
11681166
Selectors

0 commit comments

Comments
 (0)