Merge pull request #30215 from Microsoft/higherOrderFunctionTypeInference

Higher order function type inference
This commit is contained in:
Anders Hejlsberg
2019-03-08 10:41:32 -08:00
committed by GitHub
13 changed files with 2555 additions and 126 deletions
+1 -1
View File
@@ -1798,7 +1798,7 @@ namespace ts {
const span = createTextSpanFromBounds(start, end);
const formatContext = formatting.getFormatContext(formatOptions);
return flatMap(deduplicate(errorCodes, equateValues, compareValues), errorCode => {
return flatMap(deduplicate<number>(errorCodes, equateValues, compareValues), errorCode => {
cancellationToken.throwIfCancellationRequested();
return codefix.getFixes({ errorCode, sourceFile, span, program, host, cancellationToken, formatContext, preferences });
});