mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Changed name of 'reduce' method added to FileSet
This commit is contained in:
@@ -711,8 +711,8 @@ namespace ts {
|
||||
}
|
||||
|
||||
return {
|
||||
fileNames: wildcardFiles.reduce(addFileToOutput, literalFiles.reduce(addFileToOutput, [])),
|
||||
wildcardDirectories: wildcardDirectories.reduce<Map<WatchDirectoryFlags>>(addDirectoryToOutput, {}),
|
||||
fileNames: wildcardFiles.reduceProperties(addFileToOutput, literalFiles.reduceProperties(addFileToOutput, [])),
|
||||
wildcardDirectories: wildcardDirectories.reduceProperties<Map<WatchDirectoryFlags>>(addDirectoryToOutput, {}),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace ts {
|
||||
contains,
|
||||
remove,
|
||||
forEachValue: forEachValueInMap,
|
||||
reduce,
|
||||
reduceProperties: reducePropertiesInMap,
|
||||
clear,
|
||||
mergeFrom
|
||||
};
|
||||
@@ -36,7 +36,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function reduce<U>(callback: (memo: U, value: T, key: Path) => U, initial: U) {
|
||||
function reducePropertiesInMap<U>(callback: (memo: U, value: T, key: Path) => U, initial: U) {
|
||||
return reduceProperties(files, callback, initial);
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace ts {
|
||||
remove(fileName: Path): void;
|
||||
|
||||
forEachValue(f: (key: Path, v: T) => void): void;
|
||||
reduce<U>(f: (memo: U, value: T, key: Path) => U, initial: U): U;
|
||||
reduceProperties<U>(f: (memo: U, value: T, key: Path) => U, initial: U): U;
|
||||
mergeFrom(other: FileMap<T>): void;
|
||||
clear(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user