1+ // @public
2+ class File {
3+ // (undocumented)
4+ close ( ) : void ;
5+ // (undocumented)
6+ static open ( path : string , mode : string ) : File ;
7+ // (undocumented)
8+ write ( text : string ) : void ;
9+ }
10+
111// @public
212enum FileConstants {
313 PackageJson = "package.json"
@@ -12,6 +22,8 @@ class FileDiffTest {
1222
1323// @public
1424class FileSystem {
25+ // (undocumented)
26+ static changeMode ( path : string , mode : number ) : void ;
1527 // (undocumented)
1628 static copyFile ( sourcePath : string , destinationPath : string ) : void ;
1729 // (undocumented)
@@ -22,7 +34,6 @@ class FileSystem {
2234 static createSymbolicLinkToFile ( linkSource : string , linkTarget : string ) : void ;
2335 // (undocumented)
2436 static createSymbolicLinkToFolder ( linkSource : string , linkTarget : string ) : void ;
25- // WARNING: The type "IDeleteFileOptions" needs to be exported by the package (e.g. added to index.ts)
2637 // (undocumented)
2738 static deleteFile ( filePath : string , options ?: IDeleteFileOptions ) : void ;
2839 // (undocumented)
@@ -35,7 +46,6 @@ class FileSystem {
3546 static followLink ( linkPath : string ) : string ;
3647 // (undocumented)
3748 static getStatistics ( path : string ) : fs . Stats ;
38- // WARNING: The type "IMoveOptions" needs to be exported by the package (e.g. added to index.ts)
3949 // (undocumented)
4050 static move ( sourcePath : string , destinationPath : string , options ?: IMoveOptions ) : void ;
4151 // (undocumented)
@@ -45,6 +55,8 @@ class FileSystem {
4555 // (undocumented)
4656 static readFolder ( folderPath : string , options ?: IReadFolderOptions ) : Array < string > ;
4757 // (undocumented)
58+ static updateTimes ( path : string , accessedTime : number , modifiedTime : number ) : void ;
59+ // (undocumented)
4860 static writeFile ( filePath : string , contents : string , options ?: IWriteFileOptions ) : void ;
4961}
5062
@@ -54,6 +66,12 @@ enum FolderConstants {
5466 NodeModules = "node_modules"
5567}
5668
69+ // @public
70+ interface IDeleteFileOptions {
71+ // (undocumented)
72+ throwIfNotExists ?: boolean ;
73+ }
74+
5775// @public
5876interface IJsonFileSaveOptions extends IJsonFileStringifyOptions {
5977 onlyIfChanged ?: boolean ;
@@ -79,6 +97,12 @@ interface IJsonSchemaValidateOptions {
7997 customErrorHeader ?: string ;
8098}
8199
100+ // @public
101+ interface IMoveOptions {
102+ // (undocumented)
103+ overwrite ?: boolean ;
104+ }
105+
82106// @public
83107interface IPackageJson {
84108 bin ?: string ;
@@ -143,7 +167,7 @@ interface IReadFileOptions {
143167 // (undocumented)
144168 convertLineEndings ?: NewlineConversion ;
145169 // (undocumented)
146- encoding ?: string | undefined ;
170+ encoding ?: Encoding ;
147171}
148172
149173// @public
@@ -156,7 +180,7 @@ interface IWriteFileOptions {
156180 // (undocumented)
157181 convertLineEndings ?: NewlineConversion ;
158182 // (undocumented)
159- encoding ?: string | undefined ;
183+ encoding ?: Encoding ;
160184 // (undocumented)
161185 ensureFolder ?: boolean ;
162186}
0 commit comments