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 authored and GitHub committed 2017-07-11 17:39:33 -07:00
1 parent 25f4e46638
commit 08030c7d02
21 files changed
+117 -106

No files matched your search

+1 -1
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));
}
}