mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-30 11:19:12 +01:00
19 lines
565 B
TypeScript
19 lines
565 B
TypeScript
import type { inferRouterInputs, inferRouterOutputs } from "@trpc/server";
|
|
|
|
import type { AppRouter } from "./src/root";
|
|
|
|
export { appRouter, type AppRouter } from "./src/root";
|
|
export { createTRPCContext } from "./src/trpc";
|
|
|
|
/**
|
|
* Inference helpers for input types
|
|
* @example type HelloInput = RouterInputs['example']['hello']
|
|
**/
|
|
export type RouterInputs = inferRouterInputs<AppRouter>;
|
|
|
|
/**
|
|
* Inference helpers for output types
|
|
* @example type HelloOutput = RouterOutputs['example']['hello']
|
|
**/
|
|
export type RouterOutputs = inferRouterOutputs<AppRouter>;
|