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!
Was this page helpful?