tRPC is butchering object types in return types
So if I have a mutation that returns this type
the type that tRPC infers for the mutation is
This is not the same, with exactOptionalPropertyTypes.
Anyone familiar with this who can provide some info about it?
3 Replies
Hm this might be a recent thing, there was some work done detecting record types. Could you provide a minimal repro and open a GitHub issue?
@Bert make sure you are on version 10.44.0 or higher.
"@trpc/client": "^10.43.6",
"@trpc/server": "^10.43.6",
Yeah that fixed it. Thanks @wleistra (and @Nick Lucas for the effort)