UNPKG

@busymango/fetch-driver

Version:

fetch with middlewares for the browser

16 lines (15 loc) 366 B
/** * @author mango * @description fetch error */ import type DriveContext from "./context"; export interface FetchErrorParams<T> { code?: T; cause?: unknown; context: DriveContext; } export declare class FetchError<T = number> extends Error { code?: T; context?: DriveContext; constructor(message: string, params: FetchErrorParams<T>); }