mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
Check the return type of type guard functions
This commit is contained in:
@@ -17996,6 +17996,8 @@ namespace ts {
|
||||
return;
|
||||
}
|
||||
|
||||
checkSourceElement(node.type);
|
||||
|
||||
const { parameterName } = node;
|
||||
if (isThisTypePredicate(typePredicate)) {
|
||||
getTypeFromThisTypeNode(parameterName as ThisTypeNode);
|
||||
|
||||
Reference in New Issue
Block a user