UNPKG

create-better-t-stack

Version:

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

9 lines (5 loc) 228 B
import { initTRPC, TRPCError } from "@trpc/server"; import type { Context } from "./context"; export const t = initTRPC.context<Context>().create(); export const router = t.router; export const publicProcedure = t.procedure;