Merge pull request #19230 from Microsoft/fix18186

Do not reduce subtypes of awaited union type
This commit is contained in:
Ron Buckton authored and GitHub committed 2017-10-16 15:17:30 -07:00
commit 06fd5e0bfe
5 files changed
+252 -1

No files matched your search

+1 -1
View File
@@ -19686,7 +19686,7 @@ namespace ts {
return undefined;
}
return typeAsAwaitable.awaitedTypeOfType = getUnionType(types, /*subtypeReduction*/ true);
return typeAsAwaitable.awaitedTypeOfType = getUnionType(types);
}
const promisedType = getPromisedTypeOfPromise(type);