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:
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user