From ac8eb94a27905a1bcac9fea445b41e5866cf173f Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Wed, 1 Mar 2017 17:37:01 +0900 Subject: Use any instead of Object --- src/api/endpoints/i/appdata/get.js | 8 ++++---- src/api/endpoints/i/appdata/set.js | 8 ++++---- src/api/endpoints/i/authorized_apps.js | 6 +++--- src/api/endpoints/i/favorites.js | 4 ++-- src/api/endpoints/i/notifications.js | 6 +++--- src/api/endpoints/i/signin_history.js | 6 +++--- src/api/endpoints/i/update.js | 8 ++++---- 7 files changed, 23 insertions(+), 23 deletions(-) (limited to 'src/api/endpoints/i') 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} + * @return {Promise} */ 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} + * @return {Promise} */ 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} + * @param {any} params + * @param {any} user + * @return {Promise} */ 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} + * @param {any} params + * @return {Promise} */ 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} + * @param {any} params + * @param {any} user + * @return {Promise} */ 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} + * @param {any} params + * @param {any} user + * @return {Promise} */ 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} + * @return {Promise} */ module.exports = async (params, user, _, isSecure) => new Promise(async (res, rej) => -- cgit v1.2.3-freya