function fetchData(url, 
// eslint-disable-next-line @typescript-eslint/no-explicit-any
data, fetcher, 
// eslint-disable-next-line @typescript-eslint/no-explicit-any
params) {
    if (params === void 0) { params = {}; }
    var qs = getQueryString(params);
    var fetchUrl = url.indexOf('?') !== -1 ? url + "&" + qs : url + "?" + qs;
    return fetcher(fetchUrl, data)
        .then(checkStatus)
        .then(function (response) {
        // axios auto-parses JSON responses, don't need to JSON.parse
        return response.data;
    });
}
/**
 * Note: axios needs to use `withCredentials: true` in order for Sitecore cookies to be included in CORS requests
 * which is necessary for analytics and such
 * @param {string} url
 * @param {any} data
 * @param {HttpJsonFetcher<T>} fetcher
 * @param {Object} params
 */
axios needs to use `withCredentials: true` in order for Sitecore cookies to be included in CORS requests
which is necessary for analytics and such
@param {string} url
@param {any} data
@param {HttpJsonFetcher} fetcher
@param {Object} params
axios needs to use ` withCredentials : true ` in order for Sitecore cookies to be included in CORS requests which is necessary for analytics and such @param { string } url @param { any } data @param { HttpJsonFetcher } fetcher @param { Object } params
function fetchData(url, 
data, fetcher, 
params) {
    if (params === void 0) { params = {}; }
    var qs = getQueryString(params);
    var fetchUrl = url.indexOf('?') !== -1 ? url + "&" + qs : url + "?" + qs;
    return fetcher(fetchUrl, data)
        .then(checkStatus)
        .then(function (response) {
        return response.data;
    });
}
function fetchData ( url , data , fetcher , params ) { if ( params === void 0 ) { params = { } ; } var qs = getQueryString ( params ) ; var fetchUrl = url . indexOf ( '?' ) !== - 1 ? url + "&" + qs : url + "?" + qs ; return fetcher ( fetchUrl , data ) . then ( checkStatus ) . then ( function ( response ) { return response . data ; } ) ; }
Note: axios needs to use `withCredentials: true` in order for Sitecore cookies to be included in CORS requests
 which is necessary for analytics and such
 @param {string} url
 @param {any} data
 @param {HttpJsonFetcher<T>} fetcher
 @param {Object} params
Note : axios needs to use ` withCredentials : true ` in order for Sitecore cookies to be included in CORS requests which is necessary for analytics and such @param { string } url @param { any } data @param { HttpJsonFetcher<T > } fetcher @param { Object } params
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any // axios auto-parses JSON responses, don't need to JSON.parse