UNPKG

afrimomo-sdk

Version:

A unified SDK for African payment providers

6 lines 429 B
import type { ServiceError } from "../types"; import type { HttpClient } from "./httpClient"; export type ServiceResult<T> = T | ServiceError; export declare function isServiceError(result: unknown): result is ServiceError; export declare function wrapServiceCall<T>(operation: () => Promise<T>, errorHandler: HttpClient["handleApiError"], context: string): Promise<ServiceResult<T>>; //# sourceMappingURL=serviceWrapper.d.ts.map