refactor: zod validation and pr comments
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { initTRPC } from "@trpc/server"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
import { transformer } from "./transformer"
|
||||
import { unauthorizedError } from "./errors/trpc"
|
||||
|
||||
import type { Context } from "./context"
|
||||
import { unauthorizedError } from "./errors/trpc"
|
||||
import { transformer } from "./transformer"
|
||||
|
||||
import type { Meta } from "@/types/trpc/meta"
|
||||
import type { Context } from "./context"
|
||||
|
||||
const t = initTRPC.context<Context>().meta<Meta>().create({ transformer })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user