UNPKG

@afriex/core

Version:

HTTP client, configuration and typed errors for the Afriex Business API SDK

21 lines • 519 B
import { Config } from "../config/Config.js"; import { HttpClient } from "./HttpClient.js"; export class AfriexClient { constructor(config) { this.config = new Config(config); this.httpClient = new HttpClient(this.config); } /** * Get the HTTP client for custom requests */ getHttpClient() { return this.httpClient; } /** * Get the current configuration */ getConfig() { return this.config; } } //# sourceMappingURL=AfriexClient.js.map