mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-11-18 07:22:06 +00:00
Move from TRPC to server actions
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
import { createTRPCReact } from "@trpc/react-query";
|
||||
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
|
||||
|
||||
import type { AppRouter } from "@/server/appRouter";
|
||||
|
||||
export type APIRouterInput = inferRouterInputs<AppRouter>;
|
||||
export type APIRouterOutput = inferRouterOutputs<AppRouter>;
|
||||
|
||||
export type TournamentResultsData = APIRouterOutput["fetchTournamentResults"];
|
||||
export type SearchedTournament = APIRouterOutput["searchTournaments"][number];
|
||||
|
||||
export const trpc = createTRPCReact<AppRouter>();
|
||||
Reference in New Issue
Block a user