2025-02-06 16:32:52 +08:00
|
|
|
import type { AppRouter } from "@server/trpc/types";
|
|
|
|
import {
|
|
|
|
createTRPCReact,
|
|
|
|
type inferReactQueryProcedureOptions,
|
|
|
|
} from "@trpc/react-query";
|
|
|
|
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
|
|
|
|
export type ReactQueryOptions = inferReactQueryProcedureOptions<AppRouter>;
|
|
|
|
export type RouterInputs = inferRouterInputs<AppRouter>;
|
|
|
|
export type RouterOutputs = inferRouterOutputs<AppRouter>;
|
2024-07-11 11:00:51 +08:00
|
|
|
|
2024-12-30 08:26:40 +08:00
|
|
|
export const api = createTRPCReact<AppRouter>();
|