UNPKG

hapic

Version:

A http api client based on axios.

7 lines (6 loc) 469 B
import { ClientError } from './module'; import type { ClientErrorCreateContext } from './type'; export declare function createClientError<T = any>(context: ClientErrorCreateContext<T>): ClientError<T>; export declare function isClientError(error?: unknown): error is ClientError; export declare function isClientErrorWithStatusCode(error: unknown, statusCode: number | number[]): boolean; export declare function isClientErrorDueNetworkIssue(error?: unknown): boolean;