Commit bc7efc3 1 parent 7837e82 commit bc7efc3 Copy full SHA for bc7efc3
File tree 2 files changed +3
-4
lines changed
app/[lng]/(user)/_components
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import { NavbarLink } from "flowbite-react" ;
4
4
import Link from "next/link" ;
5
- import { LanguageParam } from "@/i18n" ;
5
+ import { type LanguageParam } from "@/i18n" ;
6
6
import { useLngPathname } from "@/i18n/client" ;
7
7
8
8
export type NavLink = {
Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import { cache } from "react";
4
4
import { observable } from "@trpc/server/observable" ;
5
5
import { type AppRouter , appRouter } from "@/server/api/root" ;
6
6
import { createTRPCContext } from "@/server/api/trpc" ;
7
- // TODO: callTRPCProcedure has any type
8
- import { callProcedure } from "@trpc/server" ;
7
+ import { callTRPCProcedure } from "@trpc/server" ;
9
8
import { type TRPCErrorResponse } from "@trpc/server/rpc" ;
10
9
11
10
/**
@@ -37,7 +36,7 @@ export const api = createTRPCClient<AppRouter>({
37
36
observable ( ( observer ) => {
38
37
createContext ( )
39
38
. then ( ( ctx ) => {
40
- return callProcedure ( {
39
+ return callTRPCProcedure ( {
41
40
procedures : appRouter . _def . procedures ,
42
41
path : op . path ,
43
42
getRawInput : async ( ) => op . input ,
You can’t perform that action at this time.
0 commit comments