Hello,
I'm using superjson in my project (with tRPC) and there is a bunch of fields which are optional - hence emitting undefined in a server response going client-side.
It resolves to emptiness in json field, but a bunch of undefineds in meta which I don't actually need as I don't go through object props anywhere in my project.
Can I turn off this transformation somehow? Can I register an override over this type? If so - how can I make it be omitted?
Hello,
I'm using
superjsonin my project (withtRPC) and there is a bunch of fields which are optional - hence emitting undefined in a server response going client-side.It resolves to emptiness in
jsonfield, but a bunch ofundefineds inmetawhich I don't actually need as I don't go through object props anywhere in my project.Can I turn off this transformation somehow? Can I
registeran override over this type? If so - how can I make it be omitted?