(
endpoint: string,
data?: any,
options?: RequestOptions
)
| 154 | } |
| 155 | |
| 156 | async put<T>( |
| 157 | endpoint: string, |
| 158 | data?: any, |
| 159 | options?: RequestOptions |
| 160 | ): Promise<T> { |
| 161 | return this.request<T>(endpoint, { |
| 162 | ...options, |
| 163 | method: 'PUT', |
| 164 | body: data ? JSON.stringify(data) : undefined, |
| 165 | }); |
| 166 | } |
| 167 | |
| 168 | async patch<T>( |
| 169 | endpoint: string, |