Skip to content

Commit e6df7d7

Browse files
committed
remove import, fix test
1 parent ddca144 commit e6df7d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/toolkit/src/query/core/buildInitiate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
import { DefinitionType } from '../endpointDefinitions'
99
import type { QueryThunk, MutationThunk } from './buildThunks'
1010
import type { AnyAction, ThunkAction, SerializedError } from '@reduxjs/toolkit'
11-
import type { QuerySubState, SubscriptionOptions, RootState } from './apiState'
11+
import type { SubscriptionOptions, RootState } from './apiState'
1212
import type { InternalSerializeQueryArgs } from '../defaultSerializeQueryArgs'
1313
import type { Api, ApiContext } from '../apiTypes'
1414
import type { ApiEndpointQuery } from './module'

packages/toolkit/src/query/tests/buildHooks.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import userEvent from '@testing-library/user-event'
1010
import { rest } from 'msw'
1111
import {
1212
actionsReducer,
13+
ANY,
1314
expectExactType,
1415
expectType,
1516
setupApiStore,
@@ -938,7 +939,7 @@ describe('hooks tests', () => {
938939

939940
// no-op simply for clearer type assertions
940941
res.then((result) => {
941-
expectExactType<
942+
expectType<
942943
| {
943944
error: { status: number; data: unknown } | SerializedError
944945
}

0 commit comments

Comments
 (0)