(path: string, body: unknown, opts?: RequestOptions)
| 230 | } |
| 231 | |
| 232 | async patch<T>(path: string, body: unknown, opts?: RequestOptions): Promise<T> { |
| 233 | const res = await this.request(path, { |
| 234 | method: "PATCH", |
| 235 | body: JSON.stringify(body), |
| 236 | signal: opts?.signal, |
| 237 | }); |
| 238 | if (!res.ok) throw await toApiError(res); |
| 239 | return res.json() as Promise<T>; |
| 240 | } |
| 241 | |
| 242 | async delete(path: string, opts?: RequestOptions): Promise<void> { |
| 243 | const res = await this.request(path, { |
no test coverage detected