@gdquest/gd-exercise
Version:
Core package that handles logic for the GDExercise project.
32 lines • 1.42 kB
text/typescript
export interface GdProjectSettings {
width: number;
height: number;
}
export interface GdExerciseFile {
type: "FILE";
path: string;
data: ArrayBuffer;
original: ArrayBuffer;
size: number;
focus?: boolean;
}
export interface GdExerciseDirectory {
type: "DIRECTORY";
path: string;
}
export interface GdExerciseLog {
type: "test" | "tester" | "requirement" | "requirement_methods" | "requirement_properties" | "requirement_signals" | "requirement_constants" | "requirement_nodes";
status: "done" | "pass" | "fail" | "skip" | "title";
path: string;
message: string;
}
export declare function assert(value: unknown, message?: string | Error): asserts value;
export declare function wait(ms: number): Promise<void>;
export declare function convertAbsoluteToRes(path: string, projectId: string): string;
export declare function convertResToAbsolute(path: string, projectId: string): string;
export declare function getChannelId(projectId: string): string;
export declare function getProjectFiles(projectUrl: string): Promise<Map<string, GdExerciseFile | GdExerciseDirectory>>;
export declare function getProjectSettings(projectSettingsFile: GdExerciseFile): GdProjectSettings;
export declare function getCompletePath(projectId: string, path: string): string;
export declare function cloneFile(file: GdExerciseFile): GdExerciseFile;
//# sourceMappingURL=utils.d.mts.map