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 7d5b5e9 commit cab05ddCopy full SHA for cab05dd
src/compiler/parser.ts
@@ -6699,8 +6699,9 @@ namespace ts {
6699
if (typeExpression && typeExpression.type.kind === SyntaxKind.ArrayType) {
6700
jsdocTypeLiteral.isArrayType = true;
6701
}
6702
- const useChildTypeTagAsType = childTypeTag && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type);
6703
- typedefTag.typeExpression = useChildTypeTagAsType ? childTypeTag.typeExpression : finishNode(jsdocTypeLiteral);
+ typedefTag.typeExpression = childTypeTag && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ?
+ childTypeTag.typeExpression :
6704
+ finishNode(jsdocTypeLiteral);
6705
6706
6707
0 commit comments