mc-piston-api
Version:
A library to assist with Minecraft's piston-meta API.
21 lines (20 loc) • 632 B
TypeScript
import { GameVersionManifest } from "./schema/VersionInfo";
/**
* Gets the metadata for a specific version of Minecraft.
*
* @param version - The version to get the metadata for.
* @returns The version metadata.
*/
export declare const getVersion: (version: string) => Promise<GameVersionManifest>;
/**
* Gets the latest release of Minecraft.
*
* @returns The latest release of Minecraft.
*/
export declare const getLatestVersion: () => Promise<string>;
/**
* Gets the latest snapshot of Minecraft.
*
* @returns The latest snapshot of Minecraft.
*/
export declare const getLatestSnapshotVersion: () => Promise<string>;