Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support optional methods and members #93

Merged
merged 10 commits into from
Aug 31, 2019

Conversation

aidinabedi
Copy link
Contributor

@aidinabedi aidinabedi commented Aug 26, 2019

Currently, there is no way to declare an optional method or member in a class or interface (which is quite useful in TypeScript). This PR adds support for it by allowing the method or member name to be wrapped in brackets ([myMethod] or [myMember]) to indicate it is optional - just like with parameters.

@englercj englercj merged commit 301de2b into englercj:master Aug 31, 2019
@aidinabedi aidinabedi mentioned this pull request Sep 1, 2019
@aidinabedi aidinabedi deleted the feature/optional-from-name branch April 5, 2020 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants