Chapter filter is woking (#114)

This commit is contained in:
abhijeetChawla
2021-12-13 19:52:56 +05:30
committed by GitHub
parent 51376be845
commit d382998d06
5 changed files with 424 additions and 127 deletions

14
src/typings.d.ts vendored
View File

@@ -216,3 +216,17 @@ interface PaginatedList<T> {
page: T[],
hasNextPage: boolean
}
type NullAndUndefined<T> = T | null | undefined;
type SortMode = 'fetchedAt' | 'source';
interface ChapterListOptions {
active: boolean
unread: NullAndUndefined<boolean>
downloaded: NullAndUndefined<boolean>
bookmarked: NullAndUndefined<boolean>
reverse: boolean
sortBy: SortMode
showChapterNumber: boolean
}