Interface ApiRequestGeneratorProps

interface ApiRequestGeneratorProps {
    key: string;
    responseInterceptor: ((ins) => void);
    withCredentials?: boolean;
}

Properties

key: string

The key to identify the axios instance

responseInterceptor: ((ins) => void)

The response interceptor

Type declaration

    • (ins): void
    • Parameters

      • ins: AxiosInstance

      Returns void

withCredentials?: boolean

Whether to send cookies when making a request, default is true