mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Merge pull request #17314 from gcnew/checkTypeGuardConstraintConformance
Check type guard constraint conformance
This commit is contained in:
commit
759ee288f2
4 files changed
+114
-11
No files matched your search
@@ -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