Check the return type of type guard functions

This commit is contained in:
gcnew
2017-07-20 02:48:30 +03:00
parent f37d9068ff
commit e52ed1a23a

View File

@@ -17996,6 +17996,8 @@ namespace ts {
return;
}
checkSourceElement(node.type);
const { parameterName } = node;
if (isThisTypePredicate(typePredicate)) {
getTypeFromThisTypeNode(parameterName as ThisTypeNode);