better error handling and performance improvements

This commit is contained in:
ld3zian 2025-01-28 18:49:06 -07:00
parent 6ca77cf6af
commit 17ceea25d9
6 changed files with 87 additions and 23 deletions

View file

@ -6,11 +6,9 @@ export interface Comic {
title: string;
slug: string;
genres: number[];
md_covers: {
b2key: string;
}[];
content_rating: string;
comic_type: string;
md_covers: ComicCover[];
content_rating: 'safe' | 'suggestive' | 'erotica';
comic_type: ComicType;
};
}
@ -24,4 +22,10 @@ export interface FeedMapping {
lang: string;
}
export type ComicType = 'manga' | 'manhwa' | 'manhua' | 'all';
export type ComicType = 'manga' | 'manhwa' | 'manhua' | 'all';
export interface ComicCover {
b2key: string;
width?: number;
height?: number;
}