Skip to content

Commit 7001b4c

Browse files
committed
Fix @typescript-eslint/no-unnecessary-type-constraint related problems
1 parent 8a22b1d commit 7001b4c

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
@@ -302,7 +302,7 @@ export interface CaseReducerWithPrepareDefinition<
302302

303303
type AsyncThunkSliceReducerConfig<
304304
State,
305-
ThunkArg extends any,
305+
ThunkArg,
306306
Returned = unknown,
307307
ThunkApiConfig extends AsyncThunkConfig = {},
308308
> = {
@@ -329,7 +329,7 @@ type AsyncThunkSliceReducerConfig<
329329

330330
type AsyncThunkSliceReducerDefinition<
331331
State,
332-
ThunkArg extends any,
332+
ThunkArg,
333333
Returned = unknown,
334334
ThunkApiConfig extends AsyncThunkConfig = {},
335335
> = AsyncThunkSliceReducerConfig<State, ThunkArg, Returned, ThunkApiConfig> &

0 commit comments

Comments
 (0)