(status: number, body: unknown)
| 15 | import { HyperframesApiError } from "./_gen/client.js"; |
| 16 | |
| 17 | const jsonResponse = (status: number, body: unknown): Response => |
| 18 | new Response(JSON.stringify(body), { |
| 19 | status, |
| 20 | headers: { "content-type": "application/json" }, |
| 21 | }); |
| 22 | |
| 23 | const ok = (body: unknown): Response => jsonResponse(200, body); |
| 24 | const unauthorized = (): Response => |
no outgoing calls
no test coverage detected