The response a route handler receives: node's, plus a JSON shorthand.
// Defined, not invoked: a real response comes from the server's own dispatch. function ok(res: Response) { return res.json({ ok: true }); }
json: (data: unknown) => void
Responds with data as application/json and ends the response.