Skip to content

Commit

Permalink
Fix imports in types
Browse files Browse the repository at this point in the history
  • Loading branch information
otahontas committed Jun 27, 2024
1 parent c56ef88 commit 4711fe2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions test/create-endpoint-definitions.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { QueryKeys } from "@reduxjs/toolkit/query/react";

import { describe, expectTypeOf, it } from "vitest";

import type { CreateEndpointDefinitions } from "../src/create-endpoint-definitions";
import type { TRPCBaseQuery } from "../src/create-trpc-base-query";
import type { AppRouter } from "./fixtures";
import type { CreateEndpointDefinitions } from "../src/create-endpoint-definitions.js";
import type { TRPCBaseQuery } from "../src/create-trpc-base-query.js";
import type { AppRouter } from "./fixtures.js";

describe("create endpoint definitions", () => {
describe("for new api (with trpc base query)", () => {
Expand Down
4 changes: 2 additions & 2 deletions test/create-trpc-api.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { createApi, skipToken } from "@reduxjs/toolkit/query/react";
import { createTRPCProxyClient } from "@trpc/client";
import { describe, expectTypeOf, it } from "vitest";

import { enhanceApi } from "../src";
import { type AppRouter, testClientOptions } from "./fixtures";
import { enhanceApi } from "../src/index.js";
import { type AppRouter, testClientOptions } from "./fixtures.js";

type QueryRoutes =
| "extraProcedure1"
Expand Down
4 changes: 2 additions & 2 deletions test/create-trpc-api.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import { Provider } from "react-redux";
import renderer from "react-test-renderer";
import { beforeAll, describe, expect, it, vi } from "vitest";

import { enhanceApi } from "../src";
import { enhanceApi } from "../src/index.js";
import {
type AppRouter,
appRouter,
testClientOptions,
testPort,
userFixtures,
} from "./fixtures";
} from "./fixtures.js";

type TestServer = {
close: () => Promise<void>;
Expand Down
5 changes: 4 additions & 1 deletion test/wrap-api-to-proxy.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { describe, expect, it, vi } from "vitest";

import { createRecursiveProtectiveProxy, deCapitalize } from "../src/wrap-api-to-proxy";
import {
createRecursiveProtectiveProxy,
deCapitalize,
} from "../src/wrap-api-to-proxy.js";

describe("deCapitalize", () => {
it("should decapitalize the first character of a string", () => {
Expand Down

0 comments on commit 4711fe2

Please sign in to comment.