Skip to content

Commit fceb5fa

Browse files
committed
Fix type issue related to withLazyLoadedSlices
1 parent 74c6392 commit fceb5fa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/toolkit/src/combineSlices.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { Reducer, StateFromReducersMapObject, UnknownAction } from 'redux'
22
import { combineReducers } from 'redux'
33
import { nanoid } from './nanoid'
44
import type {
5-
AnyNonNullishValue,
65
Id,
76
NonUndefined,
87
Tail,
@@ -80,7 +79,7 @@ export interface CombinedSliceReducer<
8079
* const withCustom = rootReducer.inject({ reducerPath: "customName", reducer: customSlice.reducer })
8180
* ```
8281
*/
83-
withLazyLoadedSlices<Lazy = AnyNonNullishValue>(): CombinedSliceReducer<
82+
withLazyLoadedSlices<Lazy>(): CombinedSliceReducer<
8483
InitialState,
8584
Id<DeclaredState & Partial<Lazy>>
8685
>
@@ -122,7 +121,7 @@ export interface CombinedSliceReducer<
122121
config?: InjectConfig,
123122
): CombinedSliceReducer<
124123
InitialState,
125-
Id<DeclaredState & WithSlice<SliceLike<ReducerPath, string>>>
124+
Id<DeclaredState & WithSlice<SliceLike<ReducerPath, State>>>
126125
>
127126

128127
/**

0 commit comments

Comments
 (0)