export type BaseBook = {
name: string
author: string
bookUrl: string
kind?: string
wordCount?: string
variable?: string
infoHtml?: string
tocHtml?: string
*/
}
export type Book = BaseBook & {
tocUrl: string
origin: string
originName: string
customTag?: string
coverUrl?: string
customCoverUrl?: string
intro?: string
customnumberro?: string
charset?: string
type: number
group: number
latestChapterTitle?: string
latestChapterTime: number
lastCheckTime: number
lastCheckCount: number
totalChapterNum: number
durChapterTitle?: string
durChapterIndex: number
durChapterPos: number
durChapterTime: number
canUpdate: boolean
order: number
originOrder: number
readConfig?: ReadConfig
syncTime: number
}
export type SeachBook = BaseBook & {
origin: string
originName: string
type: number
coverUrl?: string
intro?: string
latestChapterTitle?: string
tocUrl: string
time: number
originOrder: number
chapterWordCountText?: string
chapterWordCount: number0
respondTime: number
}
export type BookProgress = Pick<
Book,
| 'name'
| 'author'
| 'durChapterIndex'
| 'durChapterPos'
| 'durChapterTime'
| 'durChapterTitle'
>
export type BookChapter = {
url: string
title: string
isVolume: boolean
baseUrl: string
bookUrl: string
index: number
isVip: boolean
isPay: boolean
resourceUrl?: string
tag?: string
start?: number
end?: number
startFragmentId?: string
endFragmentId?: string
variable?: string
}