KrangaK
tRPC4y ago
9 replies
Kranga

Trouble inferring the type of a very simple structure of nested routers

A very simple router results in an inference error, causing the client to not be able to infer the router type.

I am using the proxy-beta.24 version along with typescript 4.9.1

export const app_router = t.router({ metadata: t.router({ versions: t.procedure.query(() => ({engine: '0.0.1'})) }) });
unknown.png
Was this page helpful?