mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
10 lines
325 B
TypeScript
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;
|