Néstor

Results 34 comments of Néstor

> Maybe do a PR to `io-ts` to provide such a thing for `Left`? Otherwise, we could potentially have an `Error`-subclass specifically for this in tRPC If I understand the...

Not really sure. As far as I know we should throw a regular Error, tRPC will take care to create a validation error with that error as the cause.

Yeah I just didn't take a huge look into it. We were talking about how we needed to create a new Error class to be able to throw a TRPCError...

I'm a bit stuck with the current implementation. In `router.test.ts` foo is infered as `never` which makes me think somewhere in the `router.ts` file I need to recursively call `CreateRouterInner`...

> Hey any updates on this @Nsttt ? I can jump on and help out :) Yeah I'll appreciate the help I'll hit you up on discord ❤️

Oh wow it was that simple. GREAT. I'll try it out later when I arrive home. Many thanks ❤️

I think we may need some more tests to check this works properly. Would be down to implement any you find necessary. Hit me up with ideas!

There's some issue with prettier on the .md file.

Is this feature live right now in latest ?