papermc-api
Version:
Its a PaperMC Downloads API client for node.js.
18 lines (17 loc) • 586 B
TypeScript
import { Version } from "./Version";
export interface ProjectI {
project_id: string;
project_name: string;
version_groups: string[];
versions: string[];
}
export declare class Project implements ProjectI {
project_id: string;
project_name: string;
version_groups: string[];
versions: string[];
constructor(id: string, name: string, version_groups: string[], versions: string[]);
static fromRaw(raw: ProjectI): Project;
static fromRaw(raw: ProjectI[]): Project[];
getVersion(ver: ("latest" | string)): Promise<Version>;
}