@adpt/core
Version:
AdaptJS core library
28 lines • 945 B
TypeScript
export declare type HistoryName = string;
export declare enum HistoryStatus {
preAct = "preAct",
success = "success",
failed = "failed",
complete = "complete"
}
export declare function isHistoryStatus(val: unknown): val is HistoryStatus;
export declare function isStatusComplete(status: HistoryStatus): boolean;
export interface HistoryEntry {
status: HistoryStatus;
domXml: string;
stateJson: string;
observationsJson: string;
fileName: string;
projectRoot: string;
stackName: string;
dataDir: string;
}
export interface HistoryStore {
getDataDir(withStatus: HistoryStatus): Promise<string>;
commitEntry(toStore: HistoryEntry): Promise<void>;
releaseDataDir(): Promise<void>;
historyEntry(historyName: HistoryName): Promise<HistoryEntry>;
last(withStatus: HistoryStatus): Promise<HistoryEntry | undefined>;
destroy(): Promise<void>;
}
//# sourceMappingURL=history.d.ts.map