node build fixed
This commit is contained in:
43
seanime-2.9.10/internal/extension_repo/goja_manga_test/manga-provider.d.ts
vendored
Normal file
43
seanime-2.9.10/internal/extension_repo/goja_manga_test/manga-provider.d.ts
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user