feat(core-shared): add tRPC init with superjson
This commit is contained in:
10
packages/core-shared/src/trpc/init.ts
Normal file
10
packages/core-shared/src/trpc/init.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { initTRPC } from "@trpc/server";
|
||||
import superjson from "superjson";
|
||||
|
||||
const t = initTRPC.create({
|
||||
transformer: superjson,
|
||||
});
|
||||
|
||||
export const router = t.router;
|
||||
export const publicProcedure = t.procedure;
|
||||
export const middleware = t.middleware;
|
||||
Reference in New Issue
Block a user