mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Fixes goto definitions for type predicates
This commit is contained in:
@@ -11925,6 +11925,10 @@ namespace ts {
|
||||
return resolveEntityName(<EntityName>entityName, meaning);
|
||||
}
|
||||
|
||||
if (entityName.parent.kind === SyntaxKind.TypePredicate) {
|
||||
return resolveEntityName(<Identifier>entityName, /* meanings */ SymbolFlags.Variable);
|
||||
}
|
||||
|
||||
// Do we want to return undefined here?
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user