(
endpoint: string,
data?: any,
options?: RequestOptions
)
| 166 | } |
| 167 | |
| 168 | async patch<T>( |
| 169 | endpoint: string, |
| 170 | data?: any, |
| 171 | options?: RequestOptions |
| 172 | ): Promise<T> { |
| 173 | return this.request<T>(endpoint, { |
| 174 | ...options, |
| 175 | method: 'PATCH', |
| 176 | body: data ? JSON.stringify(data) : undefined, |
| 177 | }); |
| 178 | } |
| 179 | |
| 180 | async delete<T>(endpoint: string, options?: RequestOptions): Promise<T> { |
| 181 | return this.request<T>(endpoint, { ...options, method: 'DELETE' }); |
no test coverage detected