stringiful
Version:
Easy to use stringify function with built-in configurable formatters
17 lines • 659 B
TypeScript
import { ObjectFormatter, formatFunction } from '../interface';
declare type axiosErrorParams = {
maxResponseDataLength?: number;
maxRequestDataLength?: number;
};
interface IAxiosErrorFormatterConfig {
matches: 'axiosError';
params?: axiosErrorParams;
format?: formatFunction;
fieldsWhitelist?: string[];
fieldsBlacklist?: string[];
}
export declare type AxiosErrorFormatterConfig = IAxiosErrorFormatterConfig;
export declare const isAxiosError: (obj: any) => boolean;
export declare const getAxiosErrorFormatter: (formatterConfig: AxiosErrorFormatterConfig) => ObjectFormatter;
export {};
//# sourceMappingURL=axiosError.d.ts.map