File tree Expand file tree Collapse file tree 1 file changed +1
-28
lines changed
packages/toolkit/src/tests Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Original file line number Diff line number Diff line change 1
1
import type { Reducer , Slice , WithSlice } from '@reduxjs/toolkit'
2
- import { combineSlices , createReducer } from '@reduxjs/toolkit'
3
- import type { CombinedState } from '@reduxjs/toolkit/query'
2
+ import { combineSlices } from '@reduxjs/toolkit'
4
3
import { createApi , fetchBaseQuery } from '@reduxjs/toolkit/query'
5
4
6
5
declare const stringSlice : Slice < string , { } , 'string' >
@@ -187,30 +186,4 @@ describe('type tests', () => {
187
186
( rootState : RootState , num : number ) => rootState . inner ,
188
187
)
189
188
} )
190
-
191
- test ( 'CombinedState' , ( ) => {
192
- const api = {
193
- reducerPath : 'api' as const ,
194
- reducer : createReducer (
195
- assertType < CombinedState < { } , never , 'api' > > ( {
196
- queries : { } ,
197
- mutations : { } ,
198
- provided : { } ,
199
- subscriptions : { } ,
200
- config : {
201
- reducerPath : 'api' ,
202
- invalidationBehavior : 'delayed' ,
203
- online : false ,
204
- focused : false ,
205
- keepUnusedDataFor : 60 ,
206
- middlewareRegistered : false ,
207
- refetchOnMountOrArgChange : false ,
208
- refetchOnReconnect : false ,
209
- refetchOnFocus : false ,
210
- } ,
211
- } ) ,
212
- ( ) => { } ,
213
- ) ,
214
- }
215
- } )
216
189
} )
You can’t perform that action at this time.
0 commit comments