We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742ab0a commit 88633dbCopy full SHA for 88633db
src/FileIndexer.ts
@@ -461,7 +461,7 @@ export class FileIndexer {
461
(ts.isPropertyDeclaration(declaration) && declaration.questionToken) ||
462
(ts.isPropertySignature(declaration) && declaration.questionToken)
463
)
464
- if (isOptional) {
+ if (isOptional && signature.value_signature.tpe !== undefined) {
465
signature.value_signature.tpe = this.makeOptional(
466
signature.value_signature.tpe
467
0 commit comments