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

@@ -47,13 +47,13 @@ import serialize from '../../serializers/app';
* in: formData
* required: false
* type: string
*
*
* responses:
* 200:
* description: Created application's information
* schema:
* $ref: "#/definitions/Application"
*
*
* default:
* description: Failed
* schema:
@@ -63,9 +63,9 @@ import serialize from '../../serializers/app';
/**
* Create an app
*
* @param {Object} params
* @param {Object} user
* @return {Promise<object>}
* @param {any} params
* @param {any} user
* @return {Promise<any>}
*/
module.exports = async (params, user) =>
new Promise(async (res, rej) =>

View File

@@ -17,7 +17,7 @@ import App from '../../../models/app';
* in: formData
* required: true
* type: string
*
*
* responses:
* 200:
* description: Success
@@ -27,7 +27,7 @@ import App from '../../../models/app';
* available:
* description: Whether name_id is available
* type: boolean
*
*
* default:
* description: Failed
* schema:
@@ -37,8 +37,8 @@ import App from '../../../models/app';
/**
* Check available name_id of app
*
* @param {Object} params
* @return {Promise<object>}
* @param {any} params
* @return {Promise<any>}
*/
module.exports = async (params) =>
new Promise(async (res, rej) =>

View File

@@ -24,13 +24,13 @@ import serialize from '../../serializers/app';
* description: Application unique name
* in: formData
* type: string
*
*
* responses:
* 200:
* description: Success
* schema:
* $ref: "#/definitions/Application"
*
*
* default:
* description: Failed
* schema:
@@ -40,11 +40,11 @@ import serialize from '../../serializers/app';
/**
* Show an app
*
* @param {Object} params
* @param {Object} user
* @param {Object} _
* @param {Object} isSecure
* @return {Promise<object>}
* @param {any} params
* @param {any} user
* @param {any} _
* @param {any} isSecure
* @return {Promise<any>}
*/
module.exports = (params, user, _, isSecure) =>
new Promise(async (res, rej) =>