2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

docs(core/Axios)

This commit is contained in:
Jay
2022-06-02 20:55:13 +02:00
parent c4c30b22d6
commit b80c7d3844
+4
View File
@@ -13,6 +13,8 @@ var validators = validator.validators;
* Create a new instance of Axios
*
* @param {Object} instanceConfig The default config for the instance
*
* @return {Axios} A new instance of Axios
*/
function Axios(instanceConfig) {
this.defaults = instanceConfig;
@@ -27,6 +29,8 @@ function Axios(instanceConfig) {
*
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
* @param {?Object} config
*
* @returns {Promise} The Promise to be fulfilled
*/
Axios.prototype.request = function request(configOrUrl, config) {
/*eslint no-param-reassign:0*/