mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Merge pull request #17314 from gcnew/checkTypeGuardConstraintConformance
Check type guard constraint conformance
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