版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
487 B

  1. interface SnapshotEnvironment {
  2. resolvePath(filepath: string): Promise<string>;
  3. prepareDirectory(filepath: string): Promise<void>;
  4. saveSnapshotFile(filepath: string, snapshot: string): Promise<void>;
  5. readSnapshotFile(filepath: string): Promise<string | null>;
  6. removeSnapshotFile(filepath: string): Promise<void>;
  7. }
  8. declare function setupSnapshotEnvironment(environment: SnapshotEnvironment): void;
  9. export { SnapshotEnvironment as S, setupSnapshotEnvironment as s };