@@ -69,11 +69,11 @@ namespace ts {
6969 /**
7070 * Cache of all files excluding default library file for the current program
7171 */
72- allFilesExcludingDefaultLibraryFile ?: ReadonlyArray < SourceFile > ;
72+ allFilesExcludingDefaultLibraryFile ?: readonly SourceFile [ ] ;
7373 /**
7474 * Cache of all the file names
7575 */
76- allFileNames ?: ReadonlyArray < string > ;
76+ allFileNames ?: readonly string [ ] ;
7777 }
7878
7979 export function cloneMapOrUndefined < T > ( map : ReadonlyMap < T > | undefined ) {
@@ -286,7 +286,7 @@ namespace ts.BuilderState {
286286 /**
287287 * Gets the files affected by the path from the program
288288 */
289- export function getFilesAffectedBy ( state : BuilderState , programOfThisState : Program , path : Path , cancellationToken : CancellationToken | undefined , computeHash : ComputeHash , cacheToUpdateSignature ?: Map < string > , exportedModulesMapCache ?: ComputingExportedModulesMap ) : ReadonlyArray < SourceFile > {
289+ export function getFilesAffectedBy ( state : BuilderState , programOfThisState : Program , path : Path , cancellationToken : CancellationToken | undefined , computeHash : ComputeHash , cacheToUpdateSignature ?: Map < string > , exportedModulesMapCache ?: ComputingExportedModulesMap ) : readonly SourceFile [ ] {
290290 // Since the operation could be cancelled, the signatures are always stored in the cache
291291 // They will be committed once it is safe to use them
292292 // eg when calling this api from tsserver, if there is no cancellation of the operation
@@ -407,7 +407,7 @@ namespace ts.BuilderState {
407407 /**
408408 * Get all the dependencies of the sourceFile
409409 */
410- export function getAllDependencies ( state : BuilderState , programOfThisState : Program , sourceFile : SourceFile ) : ReadonlyArray < string > {
410+ export function getAllDependencies ( state : BuilderState , programOfThisState : Program , sourceFile : SourceFile ) : readonly string [ ] {
411411 const compilerOptions = programOfThisState . getCompilerOptions ( ) ;
412412 // With --out or --outFile all outputs go into single file, all files depend on each other
413413 if ( compilerOptions . outFile || compilerOptions . out ) {
@@ -445,7 +445,7 @@ namespace ts.BuilderState {
445445 /**
446446 * Gets the names of all files from the program
447447 */
448- function getAllFileNames ( state : BuilderState , programOfThisState : Program ) : ReadonlyArray < string > {
448+ function getAllFileNames ( state : BuilderState , programOfThisState : Program ) : readonly string [ ] {
449449 if ( ! state . allFileNames ) {
450450 const sourceFiles = programOfThisState . getSourceFiles ( ) ;
451451 state . allFileNames = sourceFiles === emptyArray ? emptyArray : sourceFiles . map ( file => file . fileName ) ;
@@ -496,7 +496,7 @@ namespace ts.BuilderState {
496496 /**
497497 * Gets all files of the program excluding the default library file
498498 */
499- function getAllFilesExcludingDefaultLibraryFile ( state : BuilderState , programOfThisState : Program , firstSourceFile : SourceFile ) : ReadonlyArray < SourceFile > {
499+ function getAllFilesExcludingDefaultLibraryFile ( state : BuilderState , programOfThisState : Program , firstSourceFile : SourceFile ) : readonly SourceFile [ ] {
500500 // Use cached result
501501 if ( state . allFilesExcludingDefaultLibraryFile ) {
502502 return state . allFilesExcludingDefaultLibraryFile ;
0 commit comments