flibusta-api
Version:
> **Disclaimer**: This package is only created as an example of a search tool for Flibusta. If you like to read books - buy them legally.
26 lines (25 loc) • 486 B
TypeScript
export type Book = {
id: number;
title: string;
author: string;
link: string;
sendLink: string;
};
export type BookGenres = {
id: string;
title: string;
};
export type BookInfo = {
id: number;
title: string;
author: string;
genres: BookGenres[];
description?: string;
};
export interface BookFile {
id: string;
file: Buffer;
fileName: string;
filePath?: string;
}
export type BookFormat = 'mobi' | 'fb2' | 'pdf' | 'epub';