(method: string, path: string, body?: unknown)
| 74 | }; |
| 75 | |
| 76 | const cfOk = async (method: string, path: string, body?: unknown): Promise<any> => { |
| 77 | const response = await cf(method, path, body); |
| 78 | if (!response.ok) fail(`${method} ${path} failed: ${response.errors}`); |
| 79 | return response.result; |
| 80 | }; |
| 81 | |
| 82 | /** Paginated GET that concatenates every page of `result`. */ |
| 83 | const cfList = async (path: string): Promise<any[]> => { |
no test coverage detected