UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

22 lines (21 loc) 992 B
import ProjectItem from "../../app/ProjectItem"; import { InfoItemType } from "../IInfoItemData"; import ProjectInfoItem from "../ProjectInfoItem"; export type TestDefinition = { id: number; title: string; severity?: InfoItemType; projectItem?: ProjectItem; defaultMessage?: string; generatorId?: string; }; export declare function resultFromTestWithMessage(test: TestDefinition, generatorId: string, message?: string, projectItem?: ProjectItem): ProjectInfoItem; export declare function resultFromTest(test: TestDefinition, { id, message, item, data, }: { id?: string; message?: string; item?: ProjectItem; data?: string | boolean | number | number[]; }): ProjectInfoItem; export declare function notApplicable(): ProjectInfoItem[]; export declare function isResult(value: ProjectInfoItem | null | undefined): value is ProjectInfoItem; export declare function getTestTitleById(record: Record<string | number, TestDefinition>, testId: number): string;