mobility-toolbox-js
Version:
Toolbox for JavaScript applications in the domains of mobility and logistics.
21 lines (20 loc) • 446 B
TypeScript
export interface HttpAPIOptions {
apiKey?: string;
url: string;
}
/**
* Common class to access to a geOps api using http.
* @private
*/
declare class HttpAPI {
apiKey?: string;
url: string;
constructor(options: HttpAPIOptions);
/**
* Append the apiKey before sending the request.
*
* @private
*/
fetch<T, V>(path: string, params?: V, config?: RequestInit): Promise<T>;
}
export default HttpAPI;