@reggieofarrell/axios-retry-client
Version:
A class based api client for both the server and browser built on `axios` and `axios-retry`, written in TypeScript
23 lines (22 loc) • 632 B
TypeScript
/**
* Default logging functions, for when a custom error
* handler is not implemented.
*/
/**
* Logs a warning to the console
*/
export declare const logWarning: (message: string) => void;
/**
* Logs info to the console
*/
export declare const logInfo: (message: string) => void;
/**
* Logs data - creates colorized console output for local development
*/
export declare const logData: (title: string | undefined, data: any) => void;
/**
* Logs an error to the console
* @param {*} error
* @param {string} title - optional title for the error
*/
export declare const logError: (error: unknown, title?: string) => void;