Type instantiation is excessively deep and possibly infinitely deep
Hello,
I have some TRPC endpoint definition which contain some complex type
For this matter I am not even checking the schema of
VeryComplexType
, I just want to contain the type in the schema definition and get end-to-end type safety. Is there a way to work around the issue?4 Replies
Thanks, just to clarify, does this work for raw types (no classes)? What about if I want to do this for multiple types? Do I use a union?
Yes and yes
Thanks for the instant response!