From 7f19822b65c245a9e6d08a81e33d70db03595823 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 18 Jan 2017 16:30:42 +0900 Subject: [PATCH] [Fuck] Type definition --- src/api/models/access-token.ts | 2 +- src/api/models/app.ts | 2 +- src/api/models/appdata.ts | 2 +- src/api/models/auth-session.ts | 2 +- src/api/models/drive-file.ts | 2 +- src/api/models/drive-folder.ts | 2 +- src/api/models/drive-tag.ts | 2 +- src/api/models/favorite.ts | 2 +- src/api/models/following.ts | 2 +- src/api/models/like.ts | 2 +- src/api/models/messaging-history.ts | 2 +- src/api/models/messaging-message.ts | 2 +- src/api/models/notification.ts | 2 +- src/api/models/post.ts | 2 +- src/api/models/signin.ts | 2 +- src/api/models/user.ts | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/api/models/access-token.ts b/src/api/models/access-token.ts index ff7189fa3b..2a8a512ddc 100644 --- a/src/api/models/access-token.ts +++ b/src/api/models/access-token.ts @@ -5,4 +5,4 @@ const collection = db.get('access_tokens'); (collection as any).index('token'); // fuck type definition (collection as any).index('hash'); // fuck type definition -export default collection; +export default collection as any; // fuck type definition diff --git a/src/api/models/app.ts b/src/api/models/app.ts index 68d74be324..a947d88e4c 100644 --- a/src/api/models/app.ts +++ b/src/api/models/app.ts @@ -6,4 +6,4 @@ const collection = db.get('apps'); (collection as any).index('name_id_lower'); // fuck type definition (collection as any).index('secret'); // fuck type definition -export default collection; +export default collection as any; // fuck type definition diff --git a/src/api/models/appdata.ts b/src/api/models/appdata.ts index 5224ccfc3b..3e68354fa4 100644 --- a/src/api/models/appdata.ts +++ b/src/api/models/appdata.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('appdata'); +export default db.get('appdata') as any; // fuck type definition diff --git a/src/api/models/auth-session.ts b/src/api/models/auth-session.ts index 308b4adce8..b264a133e9 100644 --- a/src/api/models/auth-session.ts +++ b/src/api/models/auth-session.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('auth_sessions'); +export default db.get('auth_sessions') as any; // fuck type definition diff --git a/src/api/models/drive-file.ts b/src/api/models/drive-file.ts index 64e023534f..b7b44c5722 100644 --- a/src/api/models/drive-file.ts +++ b/src/api/models/drive-file.ts @@ -1,6 +1,6 @@ import db from '../../db/mongodb'; -export default db.get('drive_files'); +export default db.get('drive_files') as any; // fuck type definition export function validateFileName(name: string): boolean { return ( diff --git a/src/api/models/drive-folder.ts b/src/api/models/drive-folder.ts index aa9e0712dc..f81ffe855d 100644 --- a/src/api/models/drive-folder.ts +++ b/src/api/models/drive-folder.ts @@ -1,6 +1,6 @@ import db from '../../db/mongodb'; -export default db.get('drive_folders'); +export default db.get('drive_folders') as any; // fuck type definition export function isValidFolderName(name: string): boolean { return ( diff --git a/src/api/models/drive-tag.ts b/src/api/models/drive-tag.ts index 3e2e93b394..991c935e81 100644 --- a/src/api/models/drive-tag.ts +++ b/src/api/models/drive-tag.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('drive_tags'); +export default db.get('drive_tags') as any; // fuck type definition diff --git a/src/api/models/favorite.ts b/src/api/models/favorite.ts index 0aef3deed6..e01d9e343c 100644 --- a/src/api/models/favorite.ts +++ b/src/api/models/favorite.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('favorites'); +export default db.get('favorites') as any; // fuck type definition diff --git a/src/api/models/following.ts b/src/api/models/following.ts index 9dd2ba1400..cb3db9b539 100644 --- a/src/api/models/following.ts +++ b/src/api/models/following.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('following'); +export default db.get('following') as any; // fuck type definition diff --git a/src/api/models/like.ts b/src/api/models/like.ts index 301ef7c75f..ff04d8d0f7 100644 --- a/src/api/models/like.ts +++ b/src/api/models/like.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('likes'); +export default db.get('likes') as any; // fuck type definition diff --git a/src/api/models/messaging-history.ts b/src/api/models/messaging-history.ts index 9d96d996db..c06987e451 100644 --- a/src/api/models/messaging-history.ts +++ b/src/api/models/messaging-history.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('messaging_histories'); +export default db.get('messaging_histories') as any; // fuck type definition diff --git a/src/api/models/messaging-message.ts b/src/api/models/messaging-message.ts index 498186e4c8..cad6823cb8 100644 --- a/src/api/models/messaging-message.ts +++ b/src/api/models/messaging-message.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('messaging_messages'); +export default db.get('messaging_messages') as any; // fuck type definition diff --git a/src/api/models/notification.ts b/src/api/models/notification.ts index 6ec7c53eef..1c1f429a0d 100644 --- a/src/api/models/notification.ts +++ b/src/api/models/notification.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('notifications'); +export default db.get('notifications') as any; // fuck type definition diff --git a/src/api/models/post.ts b/src/api/models/post.ts index 97dc9d648f..ab29187251 100644 --- a/src/api/models/post.ts +++ b/src/api/models/post.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('posts'); +export default db.get('posts') as any; // fuck type definition diff --git a/src/api/models/signin.ts b/src/api/models/signin.ts index 11e6bf06b8..385a348f2e 100644 --- a/src/api/models/signin.ts +++ b/src/api/models/signin.ts @@ -1,3 +1,3 @@ import db from '../../db/mongodb'; -export default db.get('signin'); +export default db.get('signin') as any; // fuck type definition diff --git a/src/api/models/user.ts b/src/api/models/user.ts index 25b7999ba0..30805e4b63 100644 --- a/src/api/models/user.ts +++ b/src/api/models/user.ts @@ -5,7 +5,7 @@ const collection = db.get('users'); (collection as any).index('username'); // fuck type definition (collection as any).index('token'); // fuck type definition -export default collection; +export default collection as any; // fuck type definition export function validateUsername(username: string): boolean { return /^[a-zA-Z0-9\-]{3,20}$/.test(username);