mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-16 15:51:35 -05:00
Provide snippet completions for @param in JSDoc (#53260)
This commit is contained in:
committed by
GitHub
parent
a280cafbf8
commit
e83d61398e
@@ -45703,6 +45703,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;
|
||||
}
|
||||
|
||||
if (isBindingElement(node)) {
|
||||
return getTypeForVariableLikeDeclaration(node, /*includeOptionality*/ true, CheckMode.Normal) || errorType;
|
||||
}
|
||||
|
||||
if (isDeclaration(node)) {
|
||||
// In this case, we call getSymbolOfNode instead of getSymbolAtLocation because it is a declaration
|
||||
const symbol = getSymbolOfDeclaration(node);
|
||||
|
||||
Reference in New Issue
Block a user