chore: build action
This commit is contained in:
26
dist/check_datapack.d.ts
vendored
26
dist/check_datapack.d.ts
vendored
@@ -1 +1,25 @@
|
||||
export declare function checkDatapack(rootDir: String, version: String): Promise<void>;
|
||||
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(path: string, lang: string): Promise<boolean>;
|
||||
checkAllFiles(): Promise<boolean>;
|
||||
}
|
||||
export declare function checkDatapack(rootDir: string, version: string, reportAll: boolean, verbose: boolean): Promise<void>;
|
||||
|
Reference in New Issue
Block a user