typerinth
Version:
A TypeScript library for interacting with the Modrinth API.
22 lines (21 loc) • 830 B
TypeScript
import { Route } from '../Route';
import { SearchResult } from '../../interfaces/project';
import { URL } from 'node:url';
import CacheManager from '../../util/CacheManager';
import SearchOptions from '../../interfaces/project/search/SearchOptions';
import SearchFacets from '../../util/facets/SearchFacets';
export default class SearchProjectRoute extends Route<SearchResult> {
private query;
private searchOptions;
private facets?;
private filters?;
private sort;
private offset;
private limit;
constructor(baseUrl: URL, userAgent: string | undefined, cacheManager: CacheManager, query: string, options?: SearchOptions);
getCacheKey(): string | null;
getUrl(): URL;
parseData(data: any): SearchResult;
getSearchFacets(): SearchFacets | null;
getStringifiedFacets(): string;
}