Use any instead of Object
This commit is contained in:
@ -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) =>
|
||||
|
@ -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) =>
|
||||
|
@ -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) =>
|
||||
|
@ -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) =>
|
||||
|
@ -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) =>
|
||||
|
@ -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) =>
|
||||
|
@ -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) =>
|
||||
|
Reference in New Issue
Block a user