function AxiosDataFetcher(dataFetcherConfig) {
        if (dataFetcherConfig === void 0) { dataFetcherConfig = {}; }
        var onReq = dataFetcherConfig.onReq, onRes = dataFetcherConfig.onRes, onReqError = dataFetcherConfig.onReqError, onResError = dataFetcherConfig.onResError, axiosConfig = __rest(dataFetcherConfig, ["onReq", "onRes", "onReqError", "onResError"]);
        if (axiosConfig.withCredentials === undefined) {
            axiosConfig.withCredentials = true;
        }
        this.instance = axios_1.default.create(axiosConfig);
        if (onReq) {
            this.instance.interceptors.request.use(onReq, onReqError);
        }
        if (onRes) {
            this.instance.interceptors.response.use(onRes, onResError);
        }
    }
/**
     * @param {AxiosDataFetcherConfig} dataFetcherConfig Axios data fetcher configuration.
     * Note `withCredentials` is set to `true` by default in order for Sitecore cookies to
     * be included in CORS requests (which is necessary for analytics and such).
     */
@param {AxiosDataFetcherConfig} dataFetcherConfig Axios data fetcher configuration.
Note `withCredentials` is set to `true` by default in order for Sitecore cookies to
be included in CORS requests (which is necessary for analytics and such).
@param { AxiosDataFetcherConfig } dataFetcherConfig Axios data fetcher configuration . Note ` withCredentials ` is set to ` true ` by default in order for Sitecore cookies to be included in CORS requests ( which is necessary for analytics and such ) .
function AxiosDataFetcher(dataFetcherConfig) {
        if (dataFetcherConfig === void 0) { dataFetcherConfig = {}; }
        var onReq = dataFetcherConfig.onReq, onRes = dataFetcherConfig.onRes, onReqError = dataFetcherConfig.onReqError, onResError = dataFetcherConfig.onResError, axiosConfig = __rest(dataFetcherConfig, ["onReq", "onRes", "onReqError", "onResError"]);
        if (axiosConfig.withCredentials === undefined) {
            axiosConfig.withCredentials = true;
        }
        this.instance = axios_1.default.create(axiosConfig);
        if (onReq) {
            this.instance.interceptors.request.use(onReq, onReqError);
        }
        if (onRes) {
            this.instance.interceptors.response.use(onRes, onResError);
        }
    }
function AxiosDataFetcher ( dataFetcherConfig ) { if ( dataFetcherConfig === void 0 ) { dataFetcherConfig = { } ; } var onReq = dataFetcherConfig . onReq , onRes = dataFetcherConfig . onRes , onReqError = dataFetcherConfig . onReqError , onResError = dataFetcherConfig . onResError , axiosConfig = __rest ( dataFetcherConfig , [ "onReq" , "onRes" , "onReqError" , "onResError" ] ) ; if ( axiosConfig . withCredentials === undefined ) { axiosConfig . withCredentials = true ; } this . instance = axios_1 . default . create ( axiosConfig ) ; if ( onReq ) { this . instance . interceptors . request . use ( onReq , onReqError ) ; } if ( onRes ) { this . instance . interceptors . response . use ( onRes , onResError ) ; } }
@param {AxiosDataFetcherConfig} dataFetcherConfig Axios data fetcher configuration.
@param { AxiosDataFetcherConfig } dataFetcherConfig Axios data fetcher configuration .