26 lines
997 B
TypeScript
26 lines
997 B
TypeScript
import * as core from '@spyglassmc/core';
|
|
export interface ActionOptions {
|
|
/**
|
|
* If set to true, all errors are reported. If set to false, only the first error is reported
|
|
*/
|
|
reportAllErrors: boolean;
|
|
/**
|
|
* If set to true, each error is described, indicating the exact issue. If set to false, only the number of errors in each file is reported
|
|
*/
|
|
verbose: boolean;
|
|
}
|
|
export declare class CustomService extends core.Service {
|
|
rootDir: string;
|
|
options: ActionOptions;
|
|
constructor(rootDir: string, version: string, options: ActionOptions);
|
|
shutdown(): Promise<void>;
|
|
private listFilesByExtension;
|
|
private makeFileUrl;
|
|
private getFileContent;
|
|
private getLineAndColumn;
|
|
private getErrorProperties;
|
|
checkFile(filePath: string, lang: string): Promise<boolean>;
|
|
checkAllFiles(): Promise<boolean>;
|
|
}
|
|
export declare function checkDatapack(rootDir: string, version: string, reportAll: boolean, verbose: boolean): Promise<void>;
|