typerinth
Version:
A TypeScript library for interacting with the Modrinth API.
13 lines (12 loc) • 499 B
TypeScript
import { Route } from '../Route';
import { Project } from '../../interfaces/project';
import { URL } from 'node:url';
import CacheManager from '../../util/CacheManager';
import { Range0to100 } from '../../types/Range';
export declare class GetRandomProjects extends Route<Project[]> {
private count;
constructor(baseUrl: URL, ua: string | undefined, cacheManager: CacheManager, count: Range0to100);
getCacheKey(): string | null;
getUrl(): URL;
parseData(data: any): Project[];
}