(path: string, body?: any)
| 61 | } |
| 62 | |
| 63 | async function put<T>(path: string, body?: any): Promise<T> { |
| 64 | const [status, response] = await _fetch("PUT", path, body); |
| 65 | |
| 66 | await handleError(status, response); |
| 67 | return response.json() as Promise<T>; |
| 68 | } |
| 69 | |
| 70 | async function _delete<T>(path: string): Promise<T> { |
| 71 | const [status, response] = await _fetch("DELETE", path); |
nothing calls this directly
no test coverage detected