UNPKG

typerinth

Version:

A TypeScript library for interacting with the Modrinth API.

13 lines (12 loc) 566 B
import { Route } from '../Route'; import { ProjectVersion, ProjectVersionFromHashOptions } from '../../interfaces/version'; import { URL } from 'url'; import CacheManager from '../../util/CacheManager'; export default class GetVersionFromFileHashRoute extends Route<ProjectVersion> { private fileHash; private options; constructor(baseUrl: URL, ua: string | undefined, cacheManager: CacheManager, fileHash: string, options?: ProjectVersionFromHashOptions); getCacheKey(): string | null; getUrl(): URL; parseData(data: any): ProjectVersion; }