Skip to content

Commit

Permalink
remove import, fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Nov 13, 2021
1 parent ddca144 commit e6df7d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/core/buildInitiate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
import { DefinitionType } from '../endpointDefinitions'
import type { QueryThunk, MutationThunk } from './buildThunks'
import type { AnyAction, ThunkAction, SerializedError } from '@reduxjs/toolkit'
import type { QuerySubState, SubscriptionOptions, RootState } from './apiState'
import type { SubscriptionOptions, RootState } from './apiState'
import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs'
import type { Api, ApiContext } from '../apiTypes'
import type { ApiEndpointQuery } from './module'
Expand Down
3 changes: 2 additions & 1 deletion packages/toolkit/src/query/tests/buildHooks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import userEvent from '@testing-library/user-event'
import { rest } from 'msw'
import {
actionsReducer,
ANY,
expectExactType,
expectType,
setupApiStore,
Expand Down Expand Up @@ -938,7 +939,7 @@ describe('hooks tests', () => {

// no-op simply for clearer type assertions
res.then((result) => {
expectExactType<
expectType<
| {
error: { status: number; data: unknown } | SerializedError
}
Expand Down

0 comments on commit e6df7d7

Please sign in to comment.