Fix await for inherited promise

This commit is contained in:
Ron Buckton
2016-12-07 17:17:17 -08:00
parent b0bbbcbe07
commit 8dcbea9675
5 changed files with 50 additions and 1 deletions

View File

@@ -16207,7 +16207,7 @@ namespace ts {
return undefined;
}
const onfulfilledParameterType = getTypeWithFacts(getUnionType(map(thenSignatures, getTypeOfFirstParameterOfSignature)), TypeFacts.NEUndefined);
const onfulfilledParameterType = getTypeWithFacts(getUnionType(map(thenSignatures, getTypeOfFirstParameterOfSignature)), TypeFacts.NEUndefinedOrNull);
if (isTypeAny(onfulfilledParameterType)) {
return undefined;
}