@@ -39,7 +39,7 @@ namespace ts {
39
39
getExecutingFilePath ( ) : string ;
40
40
getCurrentDirectory ( ) : string ;
41
41
getDirectories ( path : string ) : string [ ] ;
42
- readDirectory ( path : string , extensions ?: string [ ] , exclude ?: string [ ] , include ?: string [ ] , depth ?: number ) : string [ ] ;
42
+ readDirectory ( path : string , extensions ?: ReadonlyArray < string > , exclude ?: ReadonlyArray < string > , include ?: ReadonlyArray < string > , depth ?: number ) : string [ ] ;
43
43
getModifiedTime ?( path : string ) : Date ;
44
44
/**
45
45
* This should be cryptographically secure.
@@ -100,7 +100,7 @@ namespace ts {
100
100
readFile ( path : string ) : string ;
101
101
writeFile ( path : string , contents : string ) : void ;
102
102
getDirectories ( path : string ) : string [ ] ;
103
- readDirectory ( path : string , extensions ?: string [ ] , basePaths ?: string [ ] , excludeEx ?: string , includeFileEx ?: string , includeDirEx ?: string ) : string [ ] ;
103
+ readDirectory ( path : string , extensions ?: ReadonlyArray < string > , basePaths ?: ReadonlyArray < string > , excludeEx ?: string , includeFileEx ?: string , includeDirEx ?: string ) : string [ ] ;
104
104
watchFile ?( path : string , callback : FileWatcherCallback ) : FileWatcher ;
105
105
watchDirectory ?( path : string , callback : DirectoryWatcherCallback , recursive ?: boolean ) : FileWatcher ;
106
106
realpath ( path : string ) : string ;
@@ -287,7 +287,7 @@ namespace ts {
287
287
}
288
288
}
289
289
290
- function readDirectory ( path : string , extensions ?: string [ ] , excludes ?: string [ ] , includes ?: string [ ] , depth ?: number ) : string [ ] {
290
+ function readDirectory ( path : string , extensions ?: ReadonlyArray < string > , excludes ?: ReadonlyArray < string > , includes ?: ReadonlyArray < string > , depth ?: number ) : string [ ] {
291
291
return matchFiles ( path , extensions , excludes , includes , useCaseSensitiveFileNames , process . cwd ( ) , depth , getAccessibleFileSystemEntries ) ;
292
292
}
293
293
0 commit comments