fix(language-service): infer any ngForOf of type any

Fixes: #17611
This commit is contained in:
Chuck Jazdzewski
2017-06-19 10:07:54 -07:00
committed by Hans
parent 4e6be15069
commit f194f18dbd
3 changed files with 7 additions and 2 deletions

View File

@ -154,8 +154,8 @@ function refinedVariableType(
}
}
// We can't do better, just return the original type.
return type;
// We can't do better, return any
return info.query.getBuiltinType(BuiltinType.Any);
}
function getEventDeclaration(info: DiagnosticTemplateInfo, includeEvent?: boolean) {