Skip to content

Commit bc7efc3

Browse files
fix type
1 parent 7837e82 commit bc7efc3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/app/[lng]/(user)/_components/navbar-links.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { NavbarLink } from "flowbite-react";
44
import Link from "next/link";
5-
import { LanguageParam } from "@/i18n";
5+
import { type LanguageParam } from "@/i18n";
66
import { useLngPathname } from "@/i18n/client";
77

88
export type NavLink = {

src/trpc/server.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import { cache } from "react";
44
import { observable } from "@trpc/server/observable";
55
import { type AppRouter, appRouter } from "@/server/api/root";
66
import { createTRPCContext } from "@/server/api/trpc";
7-
// TODO: callTRPCProcedure has any type
8-
import { callProcedure } from "@trpc/server";
7+
import { callTRPCProcedure } from "@trpc/server";
98
import { type TRPCErrorResponse } from "@trpc/server/rpc";
109

1110
/**
@@ -37,7 +36,7 @@ export const api = createTRPCClient<AppRouter>({
3736
observable((observer) => {
3837
createContext()
3938
.then((ctx) => {
40-
return callProcedure({
39+
return callTRPCProcedure({
4140
procedures: appRouter._def.procedures,
4241
path: op.path,
4342
getRawInput: async () => op.input,

0 commit comments

Comments
 (0)