import { createReactQueryHooks } from '@trpc/react' ; import type { inferProcedureOutput } from '@trpc/server' ; import type { AppRouter } from 'server/routers/_app' ; link export const trpc = createReactQueryHooks < AppRouter > ( ) ; example export type inferQueryOutput < TRouteKey extends keyof AppRouter [ '_def' ] [ 'queries' ] > = inferProcedureOutput < AppRouter [ '_def' ] [ 'queries' ] [ TRouteKey ] > ;