* Resolve #4121

* Update tslint.json
This commit is contained in:
Acid Chicken (硫酸鶏)
2019-02-04 18:27:45 +09:00
committed by Aya Morisawa
parent 3a035c481e
commit 68ee9a008e
10 changed files with 20 additions and 20 deletions

View File

@ -29,22 +29,22 @@ export default define(meta, (ps) => new Promise(async (res, rej) => {
$group: {
_id: { tag: '$tagsLower', userId: '$userId' }
}
}]) as Array<{
}]) as {
_id: {
tag: string;
userId: any;
}
}>;
}[];
//#endregion
if (data.length == 0) {
return res([]);
}
let tags: Array<{
let tags: {
name: string;
count: number;
}> = [];
}[] = [];
// カウント
for (const x of data.map(x => x._id).filter(x => !hidedTags.includes(x.tag))) {

View File

@ -40,22 +40,22 @@ export default define(meta, () => new Promise(async (res, rej) => {
$group: {
_id: { tag: '$tagsLower', userId: '$userId' }
}
}]) as Array<{
}]) as {
_id: {
tag: string;
userId: any;
}
}>;
}[];
//#endregion
if (data.length == 0) {
return res([]);
}
const tags: Array<{
const tags: {
name: string;
count: number;
}> = [];
}[] = [];
// カウント
for (const x of data.map(x => x._id).filter(x => !hidedTags.includes(x.tag))) {
@ -108,7 +108,7 @@ export default define(meta, () => new Promise(async (res, rej) => {
//#endregion
//#region 2(または3)で話題と判定されたタグそれぞれについて過去の投稿数グラフを取得する
const countPromises: Array<Promise<any[]>> = [];
const countPromises: Promise<any[]>[] = [];
const range = 20;

View File

@ -14,7 +14,7 @@ export default class extends Channel {
const mute = this.user ? await Mute.find({ muterId: this.user._id }) : null;
const mutedUserIds = mute ? mute.map(m => m.muteeId.toString()) : [];
const q: Array<string[]> = params.q;
const q: string[][] = params.q;
if (q == null) return;