mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
12 lines
438 B
TypeScript
12 lines
438 B
TypeScript
import { createTRPCReact } from "@trpc/react-query";
|
|
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
|
|
|
|
import type { AppRouter } from "@/app/server/appRouter";
|
|
|
|
export type APIRouterInput = inferRouterInputs<AppRouter>;
|
|
export type APIRouterOutput = inferRouterOutputs<AppRouter>;
|
|
|
|
export type TournamentResultsData = APIRouterOutput["fetchTournamentResults"];
|
|
|
|
export const trpc = createTRPCReact<AppRouter>();
|