papermc-api
Version:
Its a PaperMC Downloads API client for node.js.
39 lines (38 loc) • 1.11 kB
TypeScript
export interface DownloadInfo {
name: string;
sha256: string;
}
export interface DownloadInfoCollection {
[name: string]: DownloadInfo;
}
export interface Change {
commit: string;
summary: string;
message: string;
}
export interface BuildI {
project_id: string;
project_name: string;
version: string;
build: number;
time: string;
channel: string;
promoted: boolean;
changes: Change[];
downloads: DownloadInfoCollection;
}
export declare class Build implements BuildI {
project_id: string;
project_name: string;
version: string;
build: number;
time: string;
channel: string;
promoted: boolean;
changes: Change[];
downloads: DownloadInfoCollection;
constructor(project_id: string, project_name: string, version: string, build: number, time: string, channel: string, promoted: boolean, changes: Change[], downloads: DownloadInfoCollection);
getDownloadUrl(download?: string): string;
static fromRaw(raw: BuildI): Build;
static fromRaw(raw: BuildI[]): Build[];
}