Skip to content

Commit e83d613

Browse files
authored
Provide snippet completions for @param in JSDoc (#53260)
1 parent a280caf commit e83d613

8 files changed

+34214
-3
lines changed

src/compiler/checker.ts

+4
Original file line numberDiff line numberDiff line change
@@ -45703,6 +45703,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4570345703
return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;
4570445704
}
4570545705

45706+
if (isBindingElement(node)) {
45707+
return getTypeForVariableLikeDeclaration(node, /*includeOptionality*/ true, CheckMode.Normal) || errorType;
45708+
}
45709+
4570645710
if (isDeclaration(node)) {
4570745711
// In this case, we call getSymbolOfNode instead of getSymbolAtLocation because it is a declaration
4570845712
const symbol = getSymbolOfDeclaration(node);

0 commit comments

Comments
 (0)