unbag
Version:
一个专门用来开发npm工具的包
39 lines (38 loc) • 1.11 kB
TypeScript
export interface WaitConfig {
timeout: number;
interval: number;
}
export declare const WaitDefaultConfig: WaitConfig;
export interface WaitResFileContent {
lastUpdateTime?: number;
lastCheckTime?: number;
tag?: string;
finish?: boolean;
result?: boolean;
message?: string;
interval?: number;
timeout?: number;
}
export declare const genWaitResAbsoluteFilePath: (params: {
absoluteTempDir: string;
tag: string;
}) => string;
export declare const writeWaitResFile: (params: {
absoluteFilePath: string;
content?: WaitResFileContent;
merge?: boolean;
}) => Promise<void>;
export declare const readWaitResFile: (absoluteFilePath: string) => Promise<WaitResFileContent | undefined>;
export declare const WaitCmdName = "parallel-wait";
export interface CheckWaitFileResult {
checkTime: number;
content: WaitResFileContent;
}
export declare const checkWaitFile: (params: {
name: string;
absoluteFilePath: string;
}) => Promise<CheckWaitFileResult>;
export declare const genWaitCommand: (params: {
name: string;
tag: string;
}) => string;