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

Commit 0902d62

Browse files
committed
Fix: Optional methods are not marked as optional (fixes #206)
1 parent bfb1506 commit 0902d62

File tree

3 files changed

+777
-0
lines changed

3 files changed

+777
-0
lines changed

lib/ast-converter.js

+1
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,7 @@ module.exports = function(ast, extra) {
759759
SyntaxKind.Parameter === node.parent.kind ||
760760
SyntaxKind.PropertyDeclaration === node.parent.kind ||
761761
SyntaxKind.PropertySignature === node.parent.kind ||
762+
SyntaxKind.MethodDeclaration === node.parent.kind ||
762763
SyntaxKind.MethodSignature === node.parent.kind
763764
)) {
764765
result.optional = true;

0 commit comments

Comments
 (0)