UNPKG

askui

Version:

Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on

20 lines (19 loc) 762 B
import { CacheEntry } from './cache-entry'; import { ValidationType } from './cache-config'; export type CacheDataByInstruction = Record<string, CacheEntry[]>; export type CacheDataByValidationType = Record<string, CacheDataByInstruction>; export declare class CacheFile { private createAt; private version; private type; private data; private filePath; constructor(filePath?: string); loadFromFileVersion1(json: CacheFile): void; loadFromFile(): void; getDataForValidationType(validationType: ValidationType): CacheDataByInstruction; getData(): CacheDataByValidationType; saveToFile(validationType: ValidationType, relevantData: CacheDataByInstruction): void; private setRelevantData; private asJsonObject; }