UNPKG

interceptor-builder

Version:

A modern collection of reusable utility functions for JavaScript and TypeScript, designed to simplify everyday development tasks.

9 lines (8 loc) 299 B
import type { AxiosInstance } from "axios"; import { Interceptor } from "../types/type"; export declare class InterceptorBuilder { private instance; constructor(instance: AxiosInstance); use(interceptor: new (instance: AxiosInstance) => Interceptor): this; build(): AxiosInstance; }