Lounès
Lounès
TtRPC
Created by mh on 10/18/2024 in #❓-help
Types issues upgrading to v11, `never` when using t.router
https://trpc.io/docs/server/merging-routers#inline-sub-router as per the doc, both should work but only using the plain object doesn't infer the router to never
5 replies
TtRPC
Created by mh on 10/18/2024 in #❓-help
Types issues upgrading to v11, `never` when using t.router
okay, if i use router({}) only for the top-level router, and just a plain object for the nested ones, everything seems good
5 replies
TtRPC
Created by mh on 10/18/2024 in #❓-help
Types issues upgrading to v11, `never` when using t.router
Seems related to https://discord.com/channels/867764511159091230/1091331399551828078/1091331399551828078. I'm facing the same issue, only for nested routers. If I merge two routers instead of nesting them, typings work as expected.
5 replies