Provide snippet completions for @param in JSDoc (#53260)

This commit is contained in:
Gabriela Araujo Britto
2023-04-04 15:35:09 -03:00
committed by GitHub
parent a280cafbf8
commit e83d61398e
8 changed files with 34214 additions and 3 deletions

View File

@@ -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);