Use any instead of Object
This commit is contained in:
parent
d2c70afd37
commit
ac8eb94a27
81 changed files with 398 additions and 397 deletions
|
|
@ -11,8 +11,8 @@ let pending = 0;
|
|||
* Send a request to API
|
||||
* @param {string|Object} i Credential
|
||||
* @param {string} endpoint Endpoint
|
||||
* @param {Object} [data={}] Data
|
||||
* @return {Promise<Object>} Response
|
||||
* @param {any} [data={}] Data
|
||||
* @return {Promise<any>} Response
|
||||
*/
|
||||
module.exports = (i, endpoint, data = {}) => {
|
||||
if (++pending === 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue