@@ -39,7 +39,7 @@ namespace ts {
3939 getExecutingFilePath ( ) : string ;
4040 getCurrentDirectory ( ) : string ;
4141 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 [ ] ;
4343 getModifiedTime ?( path : string ) : Date ;
4444 /**
4545 * This should be cryptographically secure.
@@ -100,7 +100,7 @@ namespace ts {
100100 readFile ( path : string ) : string ;
101101 writeFile ( path : string , contents : string ) : void ;
102102 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 [ ] ;
104104 watchFile ?( path : string , callback : FileWatcherCallback ) : FileWatcher ;
105105 watchDirectory ?( path : string , callback : DirectoryWatcherCallback , recursive ?: boolean ) : FileWatcher ;
106106 realpath ( path : string ) : string ;
@@ -287,7 +287,7 @@ namespace ts {
287287 }
288288 }
289289
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 [ ] {
291291 return matchFiles ( path , extensions , excludes , includes , useCaseSensitiveFileNames , process . cwd ( ) , depth , getAccessibleFileSystemEntries ) ;
292292 }
293293
0 commit comments