UNPKG

1.04 kBTypeScriptView Raw
1import { Issue, LibraryIssue, MinecraftFolder, MinecraftLocation } from "@xmcl/core";
2import { InstallProfile, PostProcessor } from "./profile";
3export declare type InstallIssues = ProcessorIssue | LibraryIssue;
4/**
5 * The processor issue
6 */
7export interface ProcessorIssue extends Issue {
8 role: "processor";
9 /**
10 * The processor
11 */
12 processor: PostProcessor;
13}
14export interface InstallProfileIssueReport {
15 minecraftLocation: MinecraftFolder;
16 installProfile: InstallProfile;
17 issues: InstallIssues[];
18}
19/**
20 * Diagnose a install profile status. Check if it processor output correctly processed.
21 *
22 * This can be used for check if forge correctly installed when minecraft >= 1.13
23 * @beta
24 *
25 * @param installProfile The install profile.
26 * @param minecraftLocation The minecraft location
27 */
28export declare function diagnoseInstall(installProfile: InstallProfile, minecraftLocation: MinecraftLocation): Promise<InstallProfileIssueReport>;
29//# sourceMappingURL=diagnose.d.ts.map
\No newline at end of file