mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 05:17:43 -05:00
Merge pull request #19230 from Microsoft/fix18186
Do not reduce subtypes of awaited union type
This commit is contained in:
@@ -19686,7 +19686,7 @@ namespace ts {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return typeAsAwaitable.awaitedTypeOfType = getUnionType(types, /*subtypeReduction*/ true);
|
||||
return typeAsAwaitable.awaitedTypeOfType = getUnionType(types);
|
||||
}
|
||||
|
||||
const promisedType = getPromisedTypeOfPromise(type);
|
||||
|
||||
Reference in New Issue
Block a user