Skip to content

Commit 9127134

Browse files
committed
Fix @typescript-eslint/no-unnecessary-type-constraint related problems
1 parent 61086e8 commit 9127134

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/toolkit/src/createAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export interface ActionCreatorWithNonInferrablePayload<
180180
* return a {@link PayloadAction} of type `T` with a payload
181181
* of exactly the type of the argument.
182182
*/
183-
<PT extends unknown>(payload: PT): PayloadAction<PT, T>
183+
<PT>(payload: PT): PayloadAction<PT, T>
184184
}
185185

186186
/**

packages/toolkit/src/createSlice.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ export interface CaseReducerWithPrepareDefinition<
301301

302302
type AsyncThunkSliceReducerConfig<
303303
State,
304-
ThunkArg extends any,
304+
ThunkArg,
305305
Returned = unknown,
306306
ThunkApiConfig extends AsyncThunkConfig = {},
307307
> = AsyncThunkReducers<State, ThunkArg, Returned, ThunkApiConfig> & {
@@ -310,7 +310,7 @@ type AsyncThunkSliceReducerConfig<
310310

311311
type AsyncThunkSliceReducerDefinition<
312312
State,
313-
ThunkArg extends any,
313+
ThunkArg,
314314
Returned = unknown,
315315
ThunkApiConfig extends AsyncThunkConfig = {},
316316
> = AsyncThunkSliceReducerConfig<State, ThunkArg, Returned, ThunkApiConfig> &

0 commit comments

Comments
 (0)