From e6df7d74115a4684564d133346566f8942ec148e Mon Sep 17 00:00:00 2001 From: Lenz Weber Date: Sat, 13 Nov 2021 21:13:28 +0100 Subject: [PATCH] remove import, fix test --- packages/toolkit/src/query/core/buildInitiate.ts | 2 +- packages/toolkit/src/query/tests/buildHooks.test.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/toolkit/src/query/core/buildInitiate.ts b/packages/toolkit/src/query/core/buildInitiate.ts index d2c085bc6b..fbca90bc6c 100644 --- a/packages/toolkit/src/query/core/buildInitiate.ts +++ b/packages/toolkit/src/query/core/buildInitiate.ts @@ -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' diff --git a/packages/toolkit/src/query/tests/buildHooks.test.tsx b/packages/toolkit/src/query/tests/buildHooks.test.tsx index 91f4da7efc..4d74149504 100644 --- a/packages/toolkit/src/query/tests/buildHooks.test.tsx +++ b/packages/toolkit/src/query/tests/buildHooks.test.tsx @@ -10,6 +10,7 @@ import userEvent from '@testing-library/user-event' import { rest } from 'msw' import { actionsReducer, + ANY, expectExactType, expectType, setupApiStore, @@ -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 }