medv ❄
medv ❄
TtRPC
Created by medv ❄ on 9/22/2023 in #❓-help
procedure.input(z.object) is inferred as a partial (optional fields)?
Found the answer, this is an issue with tsconfig missing strict: true. Mine was set to strict, but apparently my nx integrated repo was not parsing the chain of extended configs correctly, so this small issue was just a symptom of a larger one. Zod just validated my environment 🤔
5 replies
TtRPC
Created by medv ❄ on 9/22/2023 in #❓-help
procedure.input(z.object) is inferred as a partial (optional fields)?
No description
5 replies
TtRPC
Created by medv ❄ on 9/22/2023 in #❓-help
procedure.input(z.object) is inferred as a partial (optional fields)?
trpc.io sandbox as expected is not optional:
5 replies
TtRPC
Created by Ahmed Eid on 8/19/2023 in #❓-help
Is there a way to split a trpc api across multiple lambdas ?
20 replies
TtRPC
Created by Ahmed Eid on 8/19/2023 in #❓-help
Is there a way to split a trpc api across multiple lambdas ?
Thanks for responding. We aren't looking to host these in separate lambdas on separate endpoints, instead the modularization will occur with nestjs lazy loaded modules. I'd imagine the process for us will be slightly different as we do need the full router to be present at runtime, except one that is capable of mapping the request shape to the appropriate router path, at which point the lazy loading will occur. If we do get to this, I will write back here in the future.
20 replies
TtRPC
Created by Ahmed Eid on 8/19/2023 in #❓-help
Is there a way to split a trpc api across multiple lambdas ?
Need to explore this pretty soon as it is a non-starter for us and your idea looks pretty good. Very curious to hear what did not work and what you are doing now.
20 replies