oljimenez
oljimenez
TtRPC
Created by oljimenez on 2/25/2023 in #❓-help
Zod File Upload Validation with Open-Api Support?
Hi guys, anyone know how to validate file upload with zod and get also open-api support?
1 replies
TtRPC
Created by oljimenez on 2/25/2023 in #❓-help
Zod validation and open-api support for File on the server?
Hi guys, anyone know how to validate a File upload using zod? and also have open-api support?
1 replies
TtRPC
Created by oljimenez on 12/26/2022 in #❓-help
NextJS and createProxySSGHelpers context type error
Hi guys, do you guys know a better way of clean this typescript error? createProxySSGHelpers({ router: appRouter, ctx: await createContext({ //this cause type error because ctx.req and ctx.res from getServerSideProps or getStaticProps are diferent from NextApiRequest and NextApiResponse req: ctx.req, res: ctx.res, }), transformer: superjson, }); i ended doing this export const trpcServerContext = async (ctx: NextServerContext) => createProxySSGHelpers({ router: appRouter, ctx: await createContext({ req: ctx.req as NextApiRequest, res: ctx.res as NextApiResponse, }), transformer: superjson, }); but maybe exist a better way.
6 replies