UNPKG

pack-format

Version:

Returns the pack_format of any Minecraft version, including snapshots

20 lines (19 loc) 720 B
import { PackType, FormatResult, VersionsResult } from './types'; /** * @param version the version to look up * @param type the pack format type to return; either 'resource' or 'data' * @returns the pack format for a given version */ declare function getPackFormat(version: string, type?: PackType): FormatResult; declare namespace getPackFormat { var getPackFormat: typeof import("."); var getPackFormats: (version: string) => Record<PackType, FormatResult>; var getVersions: (format: number, type?: PackType) => VersionsResult; var LATEST: { resource: number; data: number; version: string | undefined; snapshot: string | undefined; }; } export = getPackFormat;