Merge pull request #30215 from Microsoft/higherOrderFunctionTypeInference

Higher order function type inference
This commit is contained in:
Anders Hejlsberg authored and GitHub committed 2019-03-08 10:41:32 -08:00
commit d59e51b063
13 files changed
+2555 -126

No files matched your search

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