(options: ApiRequestOptions)
| 178 | } |
| 179 | |
| 180 | export const getRequestBody = (options: ApiRequestOptions): unknown => { |
| 181 | if (options.body) { |
| 182 | return options.body |
| 183 | } |
| 184 | return undefined |
| 185 | } |
| 186 | |
| 187 | export const sendRequest = async <T>( |
| 188 | config: OpenAPIConfig, |