From e1d3a96e53744f9fec773640dbd2043385257059 Mon Sep 17 00:00:00 2001 From: ci010 Date: Tue, 28 Jan 2020 11:30:27 +0800 Subject: [PATCH] docs: update the webdoc --- docs/site/definitions.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/site/definitions.js b/docs/site/definitions.js index a1e808883..898705e83 100644 --- a/docs/site/definitions.js +++ b/docs/site/definitions.js @@ -1340,6 +1340,7 @@ export interface Version { * The forge version (without minecraft version) */ version: string; + type?: "buggy" | "recommended" | "common" | "latest"; } export declare const DEFAULT_FORGE_MAVEN = "http://files.minecraftforge.net"; export interface InstallProfile { @@ -1440,15 +1441,9 @@ import * as LiteLoaderInstaller from "./liteloader"; import * as ForgeInstaller from "./forge"; import * as Installer from "./minecraft"; import * as Diagnosis from "./diagnose"; +export { JavaExecutor } from "./util"; export { Installer, ForgeInstaller, LiteLoaderInstaller, FabricInstaller, Diagnosis }; `; -module.exports['@xmcl/installer/java.d.ts'] = `/// -import { ExecOptions } from "child_process"; -export declare type JavaExecutor = (args: string[], option?: ExecOptions) => Promise; -export declare namespace JavaExecutor { - function createSimple(javaPath: string, defaultOptions?: ExecOptions): JavaExecutor; -} -`; module.exports['@xmcl/installer/liteloader.d.ts'] = `import { MinecraftLocation } from "@xmcl/core"; import { Task } from "@xmcl/task"; import { UpdatedObject } from "./util"; @@ -1638,7 +1633,9 @@ export interface JarOption extends DownloaderOption { } export declare type Option = AssetsOption & JarOption & LibraryOption; /** - * Install the Minecraft game to a location by version metadata + * Install the Minecraft game to a location by version metadata. + * + * This will install version json, version jar, and all dependencies (assets, libraries) * * @param type The type of game, client or server * @param versionMeta The version metadata @@ -1649,6 +1646,8 @@ export declare function install(type: "server" | "client", versionMeta: Version, /** * Install the Minecraft game to a location by version metadata * + * This will install version json, version jar, and all dependencies (assets, libraries) + * * Tasks emmitted: * - install * - installVersion @@ -1668,7 +1667,7 @@ export declare function install(type: "server" | "client", versionMeta: Version, */ export declare function installTask(type: "server" | "client", versionMeta: Version, minecraft: MinecraftLocation, option?: Option): Task; /** - * Only install the json/jar. Do not check dependencies; + * Only install the json/jar. Do not install dependencies. * * @param type client or server * @param versionMeta the version metadata; get from updateVersionMeta @@ -1689,7 +1688,7 @@ export declare function installVersion(type: "client" | "server", versionMeta: V */ export declare function installVersionTask(type: "client" | "server", versionMeta: Version, minecraft: MinecraftLocation, option?: JarOption): Task; /** - * Install the completeness of the Minecraft game assets and libraries. + * Install the completeness of the Minecraft game assets and libraries on a existed version. * * @param version The resolved version produced by Version.parse * @param minecraft The minecraft location