(filename: string)
| 652 | } |
| 653 | |
| 654 | export async function createDisposableTempFile(filename: string): Promise<{ |
| 655 | path: string; |
| 656 | [Symbol.dispose]: () => void; |
| 657 | }> { |
| 658 | const filepath = await getTempFilePath(filename); |
| 659 | return { |
| 660 | path: filepath, |
| 661 | [Symbol.dispose](): void { |
| 662 | fs.rmSync(path.dirname(filepath), {recursive: true, force: true}); |
| 663 | }, |
| 664 | }; |
| 665 | } |
no test coverage detected