mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Report no implicit error when we return Promise<any>
This commit is contained in:
@@ -14875,6 +14875,9 @@ namespace ts {
|
||||
return createPromiseReturnType(node, getTypeOfSymbol(esModuleSymbol));
|
||||
}
|
||||
}
|
||||
if (noImplicitAny) {
|
||||
error(node, Diagnostics.Cannot_resolve_dynamic_import_implicitly_has_a_Promise_any_type);
|
||||
}
|
||||
return createPromiseReturnType(node, anyType);
|
||||
}
|
||||
|
||||
|
||||
@@ -3161,6 +3161,10 @@
|
||||
"category": "Error",
|
||||
"code": 7034
|
||||
},
|
||||
"Cannot resolve dynamic import, implicitly has a 'Promise<any>' type.": {
|
||||
"category": "Error",
|
||||
"code": 7035
|
||||
},
|
||||
"You cannot rename this element.": {
|
||||
"category": "Error",
|
||||
"code": 8000
|
||||
|
||||
Reference in New Issue
Block a user