Files
my-links/server/trpc.ts
2023-02-15 00:02:55 +01:00

10 lines
325 B
TypeScript

import { initTRPC } from "@trpc/server";
// Avoid exporting the entire t-object
// since it's not very descriptive.
// For instance, the use of a t variable
// is common in i18n libraries.
const t = initTRPC.create();
// Base router and procedure helpers
export const router = t.router;
export const procedure = t.procedure;