summaryrefslogtreecommitdiff
path: root/src/api/endpoints/i
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-03-01 17:37:01 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-03-01 17:37:01 +0900
commitac8eb94a27905a1bcac9fea445b41e5866cf173f (patch)
treef2837b62d350356ae2f2f454960f2f22ab4a0d89 /src/api/endpoints/i
parentUpdate tslint.json (diff)
downloadsharkey-ac8eb94a27905a1bcac9fea445b41e5866cf173f.tar.gz
sharkey-ac8eb94a27905a1bcac9fea445b41e5866cf173f.tar.bz2
sharkey-ac8eb94a27905a1bcac9fea445b41e5866cf173f.zip
Use any instead of Object
Diffstat (limited to 'src/api/endpoints/i')
-rw-r--r--src/api/endpoints/i/appdata/get.js8
-rw-r--r--src/api/endpoints/i/appdata/set.js8
-rw-r--r--src/api/endpoints/i/authorized_apps.js6
-rw-r--r--src/api/endpoints/i/favorites.js4
-rw-r--r--src/api/endpoints/i/notifications.js6
-rw-r--r--src/api/endpoints/i/signin_history.js6
-rw-r--r--src/api/endpoints/i/update.js8
7 files changed, 23 insertions, 23 deletions
diff --git a/src/api/endpoints/i/appdata/get.js b/src/api/endpoints/i/appdata/get.js
index 0a86697469..7f1bdf0713 100644
--- a/src/api/endpoints/i/appdata/get.js
+++ b/src/api/endpoints/i/appdata/get.js
@@ -8,11 +8,11 @@ import Appdata from '../../../models/appdata';
/**
* Get app data
*
- * @param {Object} params
- * @param {Object} user
- * @param {Object} app
+ * @param {any} params
+ * @param {any} user
+ * @param {any} app
* @param {Boolean} isSecure
- * @return {Promise<object>}
+ * @return {Promise<any>}
*/
module.exports = (params, user, app, isSecure) =>
new Promise(async (res, rej) =>
diff --git a/src/api/endpoints/i/appdata/set.js b/src/api/endpoints/i/appdata/set.js
index 947ba0cb42..57001f4e8b 100644
--- a/src/api/endpoints/i/appdata/set.js
+++ b/src/api/endpoints/i/appdata/set.js
@@ -11,11 +11,11 @@ import event from '../../../event';
/**
* Set app data
*
- * @param {Object} params
- * @param {Object} user
- * @param {Object} app
+ * @param {any} params
+ * @param {any} user
+ * @param {any} app
* @param {Boolean} isSecure
- * @return {Promise<object>}
+ * @return {Promise<any>}
*/
module.exports = (params, user, app, isSecure) =>
new Promise(async (res, rej) =>
diff --git a/src/api/endpoints/i/authorized_apps.js b/src/api/endpoints/i/authorized_apps.js
index 12d4ca8e88..3c0cf75057 100644
--- a/src/api/endpoints/i/authorized_apps.js
+++ b/src/api/endpoints/i/authorized_apps.js
@@ -10,9 +10,9 @@ import serialize from '../../serializers/app';
/**
* Get authorized apps of my account
*
- * @param {Object} params
- * @param {Object} user
- * @return {Promise<object>}
+ * @param {any} params
+ * @param {any} user
+ * @return {Promise<any>}
*/
module.exports = (params, user) =>
new Promise(async (res, rej) =>
diff --git a/src/api/endpoints/i/favorites.js b/src/api/endpoints/i/favorites.js
index d943bec32a..28e402e366 100644
--- a/src/api/endpoints/i/favorites.js
+++ b/src/api/endpoints/i/favorites.js
@@ -10,8 +10,8 @@ import serialize from '../../serializers/post';
/**
* Get followers of a user
*
- * @param {Object} params
- * @return {Promise<object>}
+ * @param {any} params
+ * @return {Promise<any>}
*/
module.exports = (params) =>
new Promise(async (res, rej) =>
diff --git a/src/api/endpoints/i/notifications.js b/src/api/endpoints/i/notifications.js
index c91f3468e7..d5174439e2 100644
--- a/src/api/endpoints/i/notifications.js
+++ b/src/api/endpoints/i/notifications.js
@@ -11,9 +11,9 @@ import getFriends from '../../common/get-friends';
/**
* Get notifications
*
- * @param {Object} params
- * @param {Object} user
- * @return {Promise<object>}
+ * @param {any} params
+ * @param {any} user
+ * @return {Promise<any>}
*/
module.exports = (params, user) =>
new Promise(async (res, rej) =>
diff --git a/src/api/endpoints/i/signin_history.js b/src/api/endpoints/i/signin_history.js
index c373e7b7a4..ede821e3cf 100644
--- a/src/api/endpoints/i/signin_history.js
+++ b/src/api/endpoints/i/signin_history.js
@@ -10,9 +10,9 @@ import serialize from '../../serializers/signin';
/**
* Get signin history of my account
*
- * @param {Object} params
- * @param {Object} user
- * @return {Promise<object>}
+ * @param {any} params
+ * @param {any} user
+ * @return {Promise<any>}
*/
module.exports = (params, user) =>
new Promise(async (res, rej) =>
diff --git a/src/api/endpoints/i/update.js b/src/api/endpoints/i/update.js
index cd8f9b49d8..fdb89644a7 100644
--- a/src/api/endpoints/i/update.js
+++ b/src/api/endpoints/i/update.js
@@ -13,11 +13,11 @@ import config from '../../../conf';
/**
* Update myself
*
- * @param {Object} params
- * @param {Object} user
- * @param {Object} _
+ * @param {any} params
+ * @param {any} user
+ * @param {any} _
* @param {boolean} isSecure
- * @return {Promise<object>}
+ * @return {Promise<any>}
*/
module.exports = async (params, user, _, isSecure) =>
new Promise(async (res, rej) =>