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 class methods defined as a property #8

Open
gausie opened this issue May 31, 2016 · 3 comments
Open

Support class methods defined as a property #8

gausie opened this issue May 31, 2016 · 3 comments

Comments

@gausie
Copy link
Contributor

gausie commented May 31, 2016

These methods have an initializer of type [Function] instead of a value in the descriptor.

@knownasilya
Copy link
Owner

Can you explain a little more about what the issue is?

@gausie
Copy link
Contributor Author

gausie commented Jun 16, 2016

I'd like to be able to decorate methods as follows

@controller('/example')
class Example {
    @get('/')
    hello = (request, reply) => reply('world')
}

@knownasilya
Copy link
Owner

Ah! Would totally take a PR to support this if you have the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants