facet-lib
Version:
React component library for the Bare Metal Installer
8 lines (7 loc) • 435 B
TypeScript
import { AxiosError } from 'axios';
declare type OnError = <T>(arg0: AxiosError<T>) => void;
export declare const handleApiError: <T>(error: AxiosError<T>, onError?: OnError | undefined) => void;
export declare const getErrorMessage: (error: AxiosError) => any;
export declare const stringToJSON: <T>(string: string | undefined) => T | undefined;
export declare const removeProtocolFromURL: (url?: string) => string;
export {};