TypeScript type for request object for route handlers
So far I've been writing my routes like:
What would be the type for
req
if I wanted to extract my handlers like so:
N
Nick•385d ago
You'll have a really hard time extracting your handlers in some cases, but for this simple example you can just use some typescript magic
M
meow•385d ago
ah thx
4.8KMembers
View on DiscordMore Posts
Typed wrappers for proceduresI have a TRPC client with working queries and mutations. I wanted to create wrapper functions for alAre TRPC server procedures actual endpoints? Meaning can you directly do a `post` request to them?Lets say you have a public procedure called `getHelloWorld`, can you hit it by doing `localhost:3000TRPCClientError - No "query"-procedure on path "user.all"Im using react native expo, prisma, trpc and the postgres database is on railway
I have run the follAm I the only one struggling with pnpm + TypeScript monorepo + trpc?Hello all,
When using pnpm in a TypeScript monorepo without `node-linker`, I hit those errors:
```tRPC standalone server in monorepoHi,
I'm using t3-stack monorepo as my base and I've swapped out NextJS backend for standalone HTTP Codemod to v10 is not modifying any fileHello 👋,
I must be super dumb but running `pnpm dlx trpc-v10-migrate-codemod ` in my project isn't No overload matches this call when outputting unionsHello there 👋,
I have this simple procedure (we're not fully migrated on v10 yet, using interop):
[help] Uncaught (in promise) TRPCClientError: Property description must be an object: uAfter building on linux, I visit the site. And Chrome console shows this error.
But if I build on my