mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Provide snippet completions for @param in JSDoc (#53260)
This commit is contained in:
@@ -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