@ikarha/emecef
Version:
Node.js client library for interacting with the Benin e-MCF API for normalized invoicing
14 lines (13 loc) • 464 B
TypeScript
export interface EmecfErrorDetails {
code: string;
description: string;
stack?: any;
}
export declare class EmecfApiError extends Error {
readonly details: EmecfErrorDetails;
constructor(details: EmecfErrorDetails);
static fromResponse(error: any): EmecfApiError;
static checkSuccessResponse(response: any): any;
}
export declare function getErrorMessage(errorCode: string): string;
export declare const errors: Record<string, string>;