mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-18 09:35:33 +02:00
Use any instead of Object
This commit is contained in:
@@ -13,9 +13,9 @@ import serializeUser from '../../serializers/user';
|
||||
/**
|
||||
* Follow a user
|
||||
*
|
||||
* @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) =>
|
||||
|
||||
@@ -12,9 +12,9 @@ import serializeUser from '../../serializers/user';
|
||||
/**
|
||||
* Unfollow a user
|
||||
*
|
||||
* @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) =>
|
||||
|
||||
Reference in New Issue
Block a user