( path: string, body: unknown )
| 71 | } |
| 72 | |
| 73 | function deleteRequest<T = void>( |
| 74 | path: string, |
| 75 | body: unknown |
| 76 | ): Promise<ResponseWithData<T>> { |
| 77 | return request('DELETE', path, body); |
| 78 | } |
| 79 | |
| 80 | async function request<T>( |
| 81 | method: 'POST' | 'PUT' | 'DELETE', |
no test coverage detected