typerinth
Version:
A TypeScript library for interacting with the Modrinth API.
13 lines (12 loc) • 564 B
TypeScript
import { Route } from '../Route';
import CacheManager from '../../util/CacheManager';
import { URL } from 'url';
import { ProjectVersion, ProjectVersionSearchOptions } from '../../interfaces/version';
export default class GetProjectVersionsRoute extends Route<ProjectVersion[]> {
private projectId;
private options;
constructor(baseUrl: URL, ua: string | undefined, cacheManager: CacheManager, projectId: string, options?: ProjectVersionSearchOptions);
getCacheKey(): string | null;
getUrl(): URL;
parseData(data: any): ProjectVersion[];
}