Valens-AIO/types/services/ModCompilerService.d.ts

15 lines
716 B
TypeScript
Raw Normal View History

2022-12-25 18:45:37 -05:00
import { CompilerOptions } from "typescript";
import type { ILogger } from "../models/spt/utils/ILogger";
2022-07-30 00:35:54 -04:00
import { HashCacheService } from "./HashCacheService";
2022-12-25 18:45:37 -05:00
import { VFS } from "../utils/VFS";
2022-07-30 00:35:54 -04:00
export declare class ModCompilerService {
protected logger: ILogger;
protected hashCacheService: HashCacheService;
protected vfs: VFS;
constructor(logger: ILogger, hashCacheService: HashCacheService, vfs: VFS);
compileMod(modName: string, modPath: string, modTypeScriptFiles: string[]): Promise<void>;
2022-12-25 18:45:37 -05:00
protected compile(fileNames: string[], options: CompilerOptions): Promise<void>;
2022-07-30 00:35:54 -04:00
protected areFilesReady(fileNames: string[]): boolean;
protected delay(ms: number): Promise<unknown>;
}