Use any instead of Object

This commit is contained in:
Aya Morisawa
2017-03-01 17:37:01 +09:00
parent d2c70afd37
commit ac8eb94a27
81 changed files with 398 additions and 397 deletions

View File

@@ -15,10 +15,10 @@ import deepcopy = require('deepcopy');
/**
* Serialize a post
*
* @param {Object} post
* @param {Object} me?
* @param {Object} options?
* @return {Promise<Object>}
* @param {any} post
* @param {any} me?
* @param {any} options?
* @return {Promise<any>}
*/
const self = (
post: any,
@@ -26,7 +26,7 @@ const self = (
options?: {
detail: boolean
}
) => new Promise<Object>(async (resolve, reject) => {
) => new Promise<any>(async (resolve, reject) => {
const opts = options || {
detail: true,
};