| 62 | }; |
| 63 | |
| 64 | export interface IHttpClient { |
| 65 | readonly baseUrl: string; |
| 66 | readonly urlsInits: UrlInitRequired[]; |
| 67 | readonly urlsScore: number[]; |
| 68 | |
| 69 | request<E extends Endpoint>( |
| 70 | definition: RouteDefinitionExtra<E>, |
| 71 | args: E["args"], |
| 72 | localInit?: ApiRequestInit |
| 73 | ): Promise<ApiResponse<E>>; |
| 74 | } |
| 75 | |
| 76 | export type HttpClientOptions = ({baseUrl: string} | {urls: (string | UrlInit)[]}) & { |
| 77 | globalInit?: ApiRequestInit; |
no outgoing calls
no test coverage detected