k-ahlawat

Results 7 comments of k-ahlawat

Somewhat related: https://github.com/zenstackhq/zenstack/issues/560

Unfortunately I don't have a standalone repro at the moment. The whole thing started because tRPC (v11) can't properly infer Prisma.JsonValues on the client side due to the `Serialize` type...

@KATT I wasn't able to create a repro on codesandbox or stackblitz, but i was able to create a repro, it's here https://github.com/k-ahlawat/repro You can see in the `client.ts` file...

Update: One solution I found was throwing `superjson` everywhere as the transformer, that somehow fixes the type inference.

yeah didn't work. it's not really about a complex type though, it's just not able to be passed through `Serialize` properly, since it wants to convert it to primitives, but...

While I was able to add a failing(? it just doesn't typecheck correctly, not sure that counts as a failing test), I have not been able to come up with...