UNPKG

plugin-books-pro

Version:

[![npm version](https://badge.fury.io/js/plugin-books-pro.svg)](https://badge.fury.io/js/plugin-books-pro)

53 lines (52 loc) 1.21 kB
type TYPE_LANGUAGE = "en" | "vi"; type TYPE_lOCALE = "en_EN" | "vi_VN"; type Status = "SUCCESS" | "ERROR" | "WITHOUT"; export type DataType = "Top" | "New" | "Favorite"; export type BookType = "Comic" | "Novel"; export declare enum Suppliers { Metruyencv = "Metruyencv", TruyenQQ = "Truyenqq", Mangadex = "Mangadex", Manhuavn = "Manhuavn" } export interface ISourceInfo { key: Suppliers; name: string; logo: string; icon: string; language: TYPE_LANGUAGE[]; locale: TYPE_lOCALE; domain: string; } export interface IBook { rank: number; identifier: string; name: string; link: string; imageUrlThumbnail: string; view?: number; like?: number; follow?: number; tags?: string; lastChapter?: number; author?: string; comment?: number; imagePathThumbnail?: string; description?: string; rating?: number; } export interface IResponseListBook { dataType: DataType; data: IBook[]; status: Status; } export interface IBookInfo { key: Suppliers; name: string; language: TYPE_LANGUAGE[]; locale: TYPE_lOCALE; avatar: string; bookType: BookType; domain: string; } export {};