We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f9153f commit 65f09d6Copy full SHA for 65f09d6
src/compiler/checker.ts
@@ -2961,7 +2961,7 @@ namespace ts {
2961
const getter = <AccessorDeclaration>getDeclarationOfKind(symbol, SyntaxKind.GetAccessor);
2962
const setter = <AccessorDeclaration>getDeclarationOfKind(symbol, SyntaxKind.SetAccessor);
2963
2964
- if (getter.flags & NodeFlags.JavaScriptFile) {
+ if (getter && getter.flags & NodeFlags.JavaScriptFile) {
2965
const jsDocType = getTypeForVariableLikeDeclarationFromJSDocComment(getter);
2966
if (jsDocType) {
2967
return links.type = jsDocType;
0 commit comments