const db = await db.connect()// more connectionsexport async function handler(){ // .. logic omitted }
import type { inferRouterOutputs } from '@trpc/server';import { ApiRouter } from '@trinu/api';export type ListPatientsOutput = inferRouterOutputs<ApiRouter>['patient']['list-patients'];function Content({ data }: { data: ListPatientsOutput | undefined }) { ...}