UNPKG

typerinth

Version:

A TypeScript library for interacting with the Modrinth API.

18 lines (17 loc) 669 B
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'; export default class SearchProjectRoute extends Route<SearchResult> { private query; private searchOptions; private facets; private index; 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; }