UNPKG

426 BMarkdownView Raw
1## temp-file
2
3```typescript
4export function getTempName(prefix?: string | null | undefined): string;
5
6export class TmpDir {
7 getTempDir(suffix?: string): Promise<string>;
8
9 createTempDir(suffix?: string): Promise<string>;
10
11 getTempFile(suffix: string, isDir?: boolean, disposer?: ((file: string) => Promise<void>) | null): Promise<string>;
12
13 cleanupSync(): void;
14
15 cleanup(): Promise<any>;
16}
17```
\No newline at end of file