Skip to content

Commit a53a0c6

Browse files
committed
fix type imports
1 parent 4af6bd4 commit a53a0c6

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

errors.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@
4242
"40": "Please use reducer creators passed to callback. Each reducer definition must have a `_reducerDefinitionType` property indicating which handler to use.",
4343
"41": "Cannot use reserved creator type: ",
4444
"42": "Unsupported reducer type: ",
45-
"43": "If provided, `asyncThunk` creator must be `asyncThunkCreator` from '@reduxjs/toolkit'"
45+
"43": "If provided, `asyncThunk` creator must be `asyncThunkCreator` from '@reduxjs/toolkit'",
46+
"44": "called \\`injectEndpoints\\` to override already-existing endpointName without specifying \\`overrideExisting: true\\`"
4647
}

packages/toolkit/src/asyncThunkCreator.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
import type {
2+
ReducerNamesOfType,
3+
ReducerCreatorEntry,
4+
ReducerCreator,
5+
ReducerDefinition,
6+
CreatorCaseReducers,
7+
} from '@reduxjs/toolkit'
18
import type {
29
AsyncThunk,
310
AsyncThunkConfig,
@@ -7,21 +14,14 @@ import type {
714
} from './createAsyncThunk'
815
import { createAsyncThunk } from './createAsyncThunk'
916
import type { CaseReducer } from './createReducer'
10-
import type {
11-
CreatorCaseReducers,
12-
ReducerCreator,
13-
ReducerCreatorEntry,
14-
ReducerDefinition,
15-
ReducerNamesOfType,
16-
} from './createSlice'
1717
import { ReducerType } from './createSlice'
1818
import type { Id } from './tsHelpers'
1919

2020
declare module '@reduxjs/toolkit' {
2121
export interface SliceReducerCreators<
2222
State,
2323
CaseReducers extends CreatorCaseReducers<State>,
24-
Name extends string = string,
24+
Name extends string,
2525
> {
2626
[ReducerType.asyncThunk]: ReducerCreatorEntry<
2727
AsyncThunkCreator<State>,

0 commit comments

Comments
 (0)