We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
let
const
1 parent ffa21fe commit ea42644Copy full SHA for ea42644
1 file changed
src/services/symbolDisplay.ts
@@ -296,9 +296,9 @@ namespace ts.SymbolDisplay {
296
}
297
else {
298
// Method/function type parameter
299
- let declaration: Node = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
300
- Debug.assert(declaration !== undefined);
301
- declaration = declaration.parent;
+ const decl = getDeclarationOfKind(symbol, SyntaxKind.TypeParameter);
+ Debug.assert(decl !== undefined);
+ const declaration = decl.parent;
302
303
if (declaration) {
304
if (isFunctionLikeKind(declaration.kind)) {
0 commit comments