UNPKG

stream-chat

Version:

JS SDK for the Stream Chat API

17 lines 690 B
import { AxiosResponse } from 'axios'; import { APIErrorResponse } from './types'; export declare const APIErrorCodes: Record<string, { name: string; retryable: boolean; }>; declare type APIError = Error & { code: number; isWSFailure?: boolean; }; export declare function isAPIError(error: Error): error is APIError; export declare function isErrorRetryable(error: APIError): boolean; export declare function isConnectionIDError(error: APIError): boolean; export declare function isWSFailure(err: APIError): boolean; export declare function isErrorResponse(res: AxiosResponse<unknown>): res is AxiosResponse<APIErrorResponse>; export {}; //# sourceMappingURL=errors.d.ts.map