Merge pull request #9240 from Microsoft/mapBeDamned

Array#map -> ts.map.
This commit is contained in:
Daniel Rosenwasser 2016-06-17 18:24:04 -07:00 committed by GitHub
commit 3fe546b9ea

View file

@ -180,7 +180,7 @@ namespace ts {
function getEffectiveTypeRoots(options: CompilerOptions, host: ModuleResolutionHost) {
return options.typeRoots ||
defaultTypeRoots.map(d => combinePaths(options.configFilePath ? getDirectoryPath(options.configFilePath) : host.getCurrentDirectory(), d));
map(defaultTypeRoots, d => combinePaths(options.configFilePath ? getDirectoryPath(options.configFilePath) : host.getCurrentDirectory(), d));
}
/**