Report no implicit error when we return Promise<any>

This commit is contained in:
Kanchalai Tanglertsampan
2017-03-21 13:11:29 -07:00
parent 015f71b5fd
commit 8fd660bcba
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -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);
}
+4
View File
@@ -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