UNPKG

papermc-api

Version:

Its a PaperMC Downloads API client for node.js.

18 lines (17 loc) 546 B
import { Build } from "./Build"; export interface VersionI { project_id: string; project_name: string; version: string; builds: string[]; } export declare class Version { project_id: string; project_name: string; version: string; builds: string[]; constructor(proj_id: string, proj_name: string, version: string, builds: string[]); getBuild(build: ('latest' | number | string)): Promise<Build>; static fromRaw(raw: VersionI): Version; static fromRaw(raw: VersionI[]): Version[]; }