node build fixed

This commit is contained in:
ra_ma
2025-09-20 14:08:38 +01:00
parent c6ebbe069d
commit 3d298fa434
1516 changed files with 535727 additions and 2 deletions

View File

@@ -0,0 +1,43 @@
declare type SearchResult = {
id: string
title: string
synonyms?: string[]
year?: number
image?: string
}
declare type ChapterDetails = {
id: string
url: string
title: string
chapter: string
index: number
scanlator?: string
language?: string
rating?: number
updatedAt?: string
}
declare type ChapterPage = {
url: string
index: number
headers: { [key: string]: string }
}
declare type QueryOptions = {
query: string
year?: number
}
declare type Settings = {
supportsMultiLanguage?: boolean
supportsMultiScanlator?: boolean
}
declare abstract class MangaProvider {
search(opts: QueryOptions): Promise<SearchResult[]>
findChapters(id: string): Promise<ChapterDetails[]>
findChapterPages(id: string): Promise<ChapterPage[]>
getSettings(): Settings
}