@joyboy-parser/types
v1.1.5
Published
TypeScript type definitions for JoyBoy parser ecosystem
Maintainers
Readme
@joyboy-parser/types
TypeScript type definitions for the JoyBoy parser ecosystem.
Installation
npm install @joyboy-parser/typesTypes
Entity Types
import type { Manga, Chapter, Page } from '@joyboy-parser/types';Manga
interface Manga {
id: string;
title: string;
altTitles?: string[];
coverUrl?: string;
author?: string;
artist?: string;
genres?: string[];
description?: string;
status?: MangaStatus;
sourceId: string;
url?: string;
rating?: ContentRating;
year?: number;
metadata?: Record<string, any>;
}Chapter
interface Chapter {
id: string;
title: string;
number?: number;
volume?: number;
date?: string;
url?: string;
pages?: number;
scanlator?: string;
language?: string;
}Page
interface Page {
index: number;
imageUrl: string;
headers?: Record<string, string>;
width?: number;
height?: number;
}Source Types
import type { Source, SourceInfo, SourceCapabilities } from '@joyboy-parser/types';Options
import type { SearchOptions, RequestOptions } from '@joyboy-parser/types';Errors
import { ErrorType, type SourceError } from '@joyboy-parser/types';License
MIT
