Skip to content

Commit 52fbfcf

Browse files
committed
Fix @typescript-eslint/no-unnecessary-type-constraint related problems
1 parent 6c75273 commit 52fbfcf

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
@@ -297,7 +297,7 @@ export interface CaseReducerWithPrepareDefinition<
297297

298298
type AsyncThunkSliceReducerConfig<
299299
State,
300-
ThunkArg extends any,
300+
ThunkArg,
301301
Returned = unknown,
302302
ThunkApiConfig extends AsyncThunkConfig = {},
303303
> = {
@@ -324,7 +324,7 @@ type AsyncThunkSliceReducerConfig<
324324

325325
type AsyncThunkSliceReducerDefinition<
326326
State,
327-
ThunkArg extends any,
327+
ThunkArg,
328328
Returned = unknown,
329329
ThunkApiConfig extends AsyncThunkConfig = {},
330330
> = AsyncThunkSliceReducerConfig<State, ThunkArg, Returned, ThunkApiConfig> &

0 commit comments

Comments
 (0)