This commit is contained in:
Yuri Kuznetsov
2023-07-05 17:23:15 +03:00
parent 2a42cc8542
commit 1d2ae3d282

View File

@@ -48,6 +48,18 @@ let onTimeout;
* @param {Object.<string, *>} [options]
*/
/**
* Options.
*
* @typedef {Object} Espo.Ajax~Options
*
* @property {Number} [timeout] A timeout.
* @property {Object.<string, string>} [headers] A request headers.
* @property {'json'|'text'} [dataType] A data type.
* @property {string} [contentType] A content type.
* @property {boolean} [resolveWithXhr] To resolve with `XMLHttpRequest`.
*/
const baseUrl = window.location.origin + window.location.pathname;
// noinspection JSUnusedGlobalSymbols
@@ -56,18 +68,6 @@ const baseUrl = window.location.origin + window.location.pathname;
*/
const Ajax = Espo.Ajax = {
/**
* Options.
*
* @typedef {Object} Espo.Ajax~Options
*
* @property {Number} [timeout] A timeout.
* @property {Object.<string, string>} [headers] A request headers.
* @property {'json'|'text'} [dataType] A data type.
* @property {string} [contentType] A content type.
* @property {boolean} [resolveWithXhr] To resolve with `XMLHttpRequest`.
*/
/**
* Request.
*