(data?: Record<string, any>)
| 41 | } |
| 42 | |
| 43 | function buildBody(data?: Record<string, any>): string | undefined { |
| 44 | if (data) { |
| 45 | return JSON.stringify(decamelizeKeys(data)); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | async function processResponse(response: Response) { |
| 50 | const payload = await response.json(); |