Get rid of some casts

This commit is contained in:
schroda
2024-07-11 17:55:00 +02:00
parent bc01a945db
commit 2f60b94a64
5 changed files with 5 additions and 6 deletions

View File

@@ -194,7 +194,7 @@ export class Chapters {
return [chapterA, matchingChapter];
})
.filter((matchingChapters) => matchingChapters !== null) as [Chapter, Chapter][];
.filter((matchingChapters): matchingChapters is [Chapter, Chapter] => matchingChapters !== null);
}
static async download(chapterIds: number[]): Promise<void> {