summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/i.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-06-18 09:54:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-06-18 09:54:53 +0900
commit80e5645a84cc60d76f79c48a3d565fb66ad88643 (patch)
tree1e2fc1c6c9ffb7989c5db997eae906c013433eda /src/server/api/endpoints/i.ts
parentMerge pull request #1738 from rinsuki/features/ts-noimplicitany-true (diff)
downloadsharkey-80e5645a84cc60d76f79c48a3d565fb66ad88643.tar.gz
sharkey-80e5645a84cc60d76f79c48a3d565fb66ad88643.tar.bz2
sharkey-80e5645a84cc60d76f79c48a3d565fb66ad88643.zip
wip
Diffstat (limited to 'src/server/api/endpoints/i.ts')
-rw-r--r--src/server/api/endpoints/i.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/server/api/endpoints/i.ts b/src/server/api/endpoints/i.ts
index 379c3c4d88..5c769a02fd 100644
--- a/src/server/api/endpoints/i.ts
+++ b/src/server/api/endpoints/i.ts
@@ -1,12 +1,10 @@
-/**
- * Module dependencies
- */
-import User, { pack } from '../../../models/user';
+import User, { pack, ILocalUser } from '../../../models/user';
+import { IApp } from '../../../models/app';
/**
* Show myself
*/
-module.exports = (params, user, app) => new Promise(async (res, rej) => {
+module.exports = (params: any, user: ILocalUser, app: IApp) => new Promise(async (res, rej) => {
const isSecure = user != null && app == null;
// Serialize