Open anton-johansson opened 1 year ago
Hi @anton-johansson, would you be able to paste a code snippet with more context, including how you are importing CreateTrpcKoaContextOptions
? CreateTrpcKoaContextOptions
was added in trpc-koa-adapter
version 1.1.2
. I tested against this locally and it is typed as expected when doing import { CreateTrpcKoaContextOptions } from 'trpc-koa-adapter';
This depends on your version of @types/node
as ServerResponse
is not generic in @types/node@^16
. Installing @^18
solves the problem for me.
Hey!
I'm messing around with this library, and realized that
res
from the example shows up asany
for me. Any idea why? See below:EDIT: The reason I'm asking is because I'd like to set a response cookie. I'm trying to create a tRPC procedure for logging in, and therefore I need to set a cookie. :)