(body: unknown)
| 45 | * on enumeration-safety compare only the payload. |
| 46 | */ |
| 47 | const extractData = (body: unknown): unknown => |
| 48 | body !== null && typeof body === "object" && "data" in body |
| 49 | ? body.data |
| 50 | : body; |
| 51 | |
| 52 | const readJson = async (res: Response): Promise<unknown> => { |
| 53 | if (!isJson(res)) { |