Code review comments

This commit is contained in:
Mohamed Hegazy
2016-05-03 16:09:01 -07:00
parent b4baee492f
commit 9ff66fbb5e
5 changed files with 98 additions and 2 deletions

View File

@@ -13428,7 +13428,7 @@ namespace ts {
return undefined;
}
const onfulfilledParameterType = getUnionType(map(thenSignatures, getTypeOfFirstParameterOfSignature));
const onfulfilledParameterType = getTypeWithFacts(getUnionType(map(thenSignatures, getTypeOfFirstParameterOfSignature)), TypeFacts.NEUndefined);
if (onfulfilledParameterType.flags & TypeFlags.Any) {
return undefined;
}
@@ -13443,7 +13443,7 @@ namespace ts {
}
function getTypeOfFirstParameterOfSignature(signature: Signature) {
return getTypeWithFacts(getTypeAtPosition(signature, 0), TypeFacts.NEUndefined);
return getTypeAtPosition(signature, 0);
}
/**