Add Generic To Response in Next
Hi, I am trying to type my return with
NextResponse.json() in a next js API route. Any idea how I can do this? Thanks!NextResponse.json() as Typereturn NextResponse.json(schema.parse({}))NextResponse<z.infer<typeof myCoolValidator>>