flibusta
Version:
Unofficial Flibusta API based on website search engine. If you like to read books - buy
17 lines (16 loc) • 775 B
TypeScript
import { AxiosInstance } from 'axios';
import FlibustaAPIHelper from '@src/flibustaApiHelper';
import { Genres } from '@localTypes/genres';
import { Nullable } from '@localTypes/generals';
import { PaginatedSearchResult } from '@localTypes/paginatedSearchResult';
declare class GetGenres extends FlibustaAPIHelper {
axiosInstance: AxiosInstance;
constructor(axiosInstance: AxiosInstance);
private static generateGetGenresURL;
private fetchGenresFromFlibusta;
private static getInformationOfGenres;
private generateGenresListResponse;
getGenres(name: string): Promise<Nullable<Array<Genres>>>;
getGenresPaginated(name: string, page?: number, limit?: number): Promise<Nullable<PaginatedSearchResult<Array<Genres>>>>;
}
export default GetGenres;