This repository was archived by the owner on Jul 17, 2024. It is now read-only.
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { ProgressBarController } from './util/progressBarController'
2
2
3
+ interface VirtualFileSystemWriteOptions {
4
+ skipEmptyFolders ?: boolean
5
+ progress ?: ProgressBarController
6
+ }
7
+
3
8
declare class VirtualNode {
4
9
constructor ( name : string , parent ?: VirtualNode )
5
10
public name : string
@@ -87,7 +92,12 @@ export class VirtualFolder extends VirtualNode {
87
92
88
93
getAllFilePaths ( ) : string [ ]
89
94
90
- writeToDisk ( outputFolder : string , progress ?: ProgressBarController ) : Promise < void >
95
+ writeToDisk ( outputFolder : string , writeOptions : VirtualFileSystemWriteOptions ) : Promise < void >
96
+
97
+ writeChildrenToDisk (
98
+ outputFolder : string ,
99
+ writeOptions : VirtualFileSystemWriteOptions
100
+ ) : Promise < void >
91
101
}
92
102
93
103
type VirtualFileContent = string | Buffer | Uint8Array | string [ ] | any
@@ -110,5 +120,5 @@ export class VirtualFile extends VirtualNode {
110
120
newContent : VirtualFileContent
111
121
) => VirtualFileContent
112
122
113
- writeToDisk ( outputFolder : string , progress ?: ProgressBarController ) : Promise < void >
123
+ writeToDisk ( outputFolder : string , writeOptions : VirtualFileSystemWriteOptions ) : Promise < void >
114
124
}
You can’t perform that action at this time.
0 commit comments