Skip to content

Commit ba441ca

Browse files
committed
fix(react-query): revert unnecessary import order change
1 parent 5b61eea commit ba441ca

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

packages/openapi-react-query/src/index.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import {
2+
type UseMutationOptions,
3+
type UseMutationResult,
4+
type UseQueryOptions,
5+
type UseQueryResult,
6+
type UseSuspenseQueryOptions,
7+
type UseSuspenseQueryResult,
8+
type UseInfiniteQueryOptions,
9+
type UseInfiniteQueryResult,
210
type QueryClient,
311
type QueryFunctionContext,
412
type SkipToken,
5-
useInfiniteQuery,
6-
type UseInfiniteQueryOptions,
7-
type UseInfiniteQueryResult,
813
useMutation,
9-
type UseMutationOptions,
10-
type UseMutationResult,
1114
useQuery,
12-
type UseQueryOptions,
13-
type UseQueryResult,
1415
useSuspenseQuery,
15-
type UseSuspenseQueryOptions,
16-
type UseSuspenseQueryResult
16+
useInfiniteQuery,
1717
} from "@tanstack/react-query";
18-
import type { ClientMethod, Client as FetchClient, FetchResponse, MaybeOptionalInit } from "openapi-fetch";
18+
import type { ClientMethod, FetchResponse, MaybeOptionalInit, Client as FetchClient } from "openapi-fetch";
1919
import type { HttpMethod, MediaType, PathsWithMethod, RequiredKeysOf } from "openapi-typescript-helpers";
2020

2121
type InitWithUnknowns<Init> = Init & { [key: string]: unknown };

packages/openapi-react-query/test/index.test.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
import { afterAll, beforeAll, describe, expect, it } from "vitest";
2+
import { server, baseUrl, useMockRequestHandler } from "./fixtures/mock-server.js";
3+
import type { paths } from "./fixtures/api.js";
4+
import createClient from "../src/index.js";
5+
import createFetchClient from "openapi-fetch";
6+
import { act, fireEvent, render, renderHook, screen, waitFor } from "@testing-library/react";
17
import {
28
QueryClient,
39
QueryClientProvider,
4-
skipToken,
510
useQueries,
611
useQuery,
712
useSuspenseQuery,
13+
skipToken,
814
} from "@tanstack/react-query";
9-
import { act, fireEvent, render, renderHook, screen, waitFor } from "@testing-library/react";
10-
import createFetchClient from "openapi-fetch";
1115
import { Suspense, type ReactNode } from "react";
1216
import { ErrorBoundary } from "react-error-boundary";
13-
import { afterAll, beforeAll, describe, expect, it } from "vitest";
14-
import createClient from "../src/index.js";
15-
import type { paths } from "./fixtures/api.js";
16-
import { baseUrl, server, useMockRequestHandler } from "./fixtures/mock-server.js";
1717

1818
type minimalGetPaths = {
1919
// Without parameters.

0 commit comments

Comments
 (0)