Convert most of core.ts to accept ReadonlyArray (#17092)

* Convert most of core.ts to accept ReadonlyArray

* Fix lint

* Fix isArray
This commit is contained in:
Andy
2017-07-11 17:39:33 -07:00
committed by GitHub
parent 25f4e46638
commit 08030c7d02
21 changed files with 117 additions and 106 deletions

View File

@@ -216,7 +216,7 @@ namespace Utils {
}
}
readDirectory(path: string, extensions: string[], excludes: string[], includes: string[], depth: number) {
readDirectory(path: string, extensions: ReadonlyArray<string>, excludes: ReadonlyArray<string>, includes: ReadonlyArray<string>, depth: number) {
return ts.matchFiles(path, extensions, excludes, includes, this.useCaseSensitiveFileNames, this.currentDirectory, depth, (path: string) => this.getAccessibleFileSystemEntries(path));
}
}