-
-
Notifications
You must be signed in to change notification settings - Fork 9
Known as a class decorator #1
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
Comments
Can you elaborate? |
The ability to use this as a class decorator: @known
class Foobar {
baz = 1;
someMethod() {}
}
|
That would indeed be very nice, but https://github.com/wycats/javascript-decorators/blob/master/README.md Would be happy to accept a pull request if it's possible to support it without transpiling this code though. |
A decorator is just a function with a pre-defined set of arguments. So it should be perfectly possible. |
Hey guys, I'm trying to pick this up but i'm sure if i got the gist of it. Since transpiling is out of the question, wouldnt wrapping it in high order function result in the same invocation, like
Thank you |
No description provided.
The text was updated successfully, but these errors were encountered: