Skip to content

Commit a99b5cb

Browse files
committed
Check in other places too
1 parent 03d2382 commit a99b5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7392,7 +7392,7 @@ namespace ts {
73927392

73937393
function getTypeForThisExpressionFromJSDoc(node: Node) {
73947394
const typeTag = getJSDocTypeTag(node);
7395-
if (typeTag && typeTag.typeExpression.type.kind === SyntaxKind.JSDocFunctionType) {
7395+
if (typeTag && typeTag.typeExpression && typeTag.typeExpression.type && typeTag.typeExpression.type.kind === SyntaxKind.JSDocFunctionType) {
73967396
const jsDocFunctionType = <JSDocFunctionType>typeTag.typeExpression.type;
73977397
if (jsDocFunctionType.parameters.length > 0 && jsDocFunctionType.parameters[0].type.kind === SyntaxKind.JSDocThisType) {
73987398
return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type);

0 commit comments

Comments
 (0)