temp.d.ts 424 B

123456789101112
  1. import { Disposer } from '../types';
  2. declare const Temp: {
  3. store: Record<string, boolean>;
  4. create: (filePath: string) => string;
  5. get: (filePath: string, creator: (filePath: string) => string, purge?: boolean) => [string, Disposer];
  6. purge: (filePath: string) => void;
  7. purgeSync: (filePath: string) => void;
  8. purgeSyncAll: () => void;
  9. truncate: (filePath: string) => string;
  10. };
  11. export default Temp;