mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix crash in getAwaitedType (#54107)
This commit is contained in:
@@ -2036,7 +2036,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
getGlobalIterableType: getGlobalAsyncIterableType,
|
||||
getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType,
|
||||
getGlobalGeneratorType: getGlobalAsyncGeneratorType,
|
||||
resolveIterationType: getAwaitedType,
|
||||
resolveIterationType: (type, errorNode) => getAwaitedType(type, errorNode, Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),
|
||||
mustHaveANextMethodDiagnostic: Diagnostics.An_async_iterator_must_have_a_next_method,
|
||||
mustBeAMethodDiagnostic: Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,
|
||||
mustHaveAValueDiagnostic: Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property,
|
||||
|
||||
Reference in New Issue
Block a user