@@ -111,7 +111,7 @@ export interface Slice<
111111   * Equivalent to `slice.getSelectors((state: RootState) => state[slice.reducerPath])`. 
112112   */ 
113113  get  selectors ( ) : Id < 
114-     SliceDefinedSelectors < State ,  Selectors ,  {   [ K   in   ReducerPath ] :  State   } > 
114+     SliceDefinedSelectors < State ,  Selectors ,  Record < ReducerPath ,  State > > 
115115  > 
116116
117117  /** 
@@ -133,7 +133,7 @@ export interface Slice<
133133   * 
134134   * Will throw an error if slice is not found. 
135135   */ 
136-   selectSlice ( state : {   [ K   in   ReducerPath ] :  State   } ) : State 
136+   selectSlice ( state : Record < ReducerPath ,  State > ) : State 
137137} 
138138
139139/** 
@@ -172,7 +172,7 @@ type InjectedSlice<
172172    SliceDefinedSelectors < 
173173      State , 
174174      Selectors , 
175-       {   [ K   in   ReducerPath ] ?:  State  |  undefined   } 
175+       Partial < Record < ReducerPath ,  State  |  undefined > > 
176176    > 
177177  > 
178178
@@ -181,7 +181,7 @@ type InjectedSlice<
181181   * 
182182   * Returns initial state if slice is not found. 
183183   */ 
184-   selectSlice ( state : {   [ K   in   ReducerPath ] ?:  State  |  undefined   } ) : State 
184+   selectSlice ( state : Partial < Record < ReducerPath ,  State  |  undefined > > ) : State 
185185} 
186186
187187/** 
@@ -760,7 +760,7 @@ export function buildCreateSlice({ creators }: BuildCreateSliceConfig = {}) {
760760      Slice < State ,  CaseReducers ,  Name ,  CurrentReducerPath ,  Selectors > , 
761761      'getSelectors'  |  'selectors'  |  'selectSlice'  |  'reducerPath' 
762762    >  { 
763-       function  selectSlice ( state : {   [ K   in   CurrentReducerPath ] :  State   } )  { 
763+       function  selectSlice ( state : Record < CurrentReducerPath ,  State > )  { 
764764        let  sliceState  =  state [ reducerPath ] 
765765        if  ( typeof  sliceState  ===  'undefined' )  { 
766766          if  ( injected )  { 
0 commit comments