Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 1e73711

Browse files
Pajnsoda0289
authored andcommitted
Fix: Optional methods are not marked as optional (fixes #206) (#207)
1 parent 1cee2e3 commit 1e73711

7 files changed

+1697
-0
lines changed

lib/ast-converter.js

+1
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ module.exports = function(ast, extra) {
762762
SyntaxKind.Parameter === node.parent.kind ||
763763
SyntaxKind.PropertyDeclaration === node.parent.kind ||
764764
SyntaxKind.PropertySignature === node.parent.kind ||
765+
SyntaxKind.MethodDeclaration === node.parent.kind ||
765766
SyntaxKind.MethodSignature === node.parent.kind
766767
)) {
767768
result.optional = true;

0 commit comments

Comments
 (0)