import { initTRPC } from "@trpc/server" import type { Response } from "express" import superjson from "superjson" export interface Context { res?: Response } export async function createContext(res: Response | undefined): Promise { return { res } } export const t = initTRPC.context().create({ transformer: superjson })