Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 12x 12x 12x 12x 12x | /**
* tRPC Initialization
*
* Extracted from router.ts to break circular dependencies.
* All domain routers import from here instead of router.ts.
*/
import { initTRPC } from '@trpc/server';
import type { TRPCContext } from './context.js';
const t = initTRPC.context<TRPCContext>().create();
export const router = t.router;
export const publicProcedure = t.procedure;
export const middleware = t.middleware;
export const createCallerFactory = t.createCallerFactory;
export type ProcedureBuilder = typeof t.procedure;
|