We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @championswimmer 馃槂
I was wondering if there is a way with your plugin to define a method with parameters as a getter?
get getUser() { ... } works get getUser(id: string) { ... } does not work since the ES6 syntax does not allow get methods to have parameters
get getUser() { ... }
get getUser(id: string) { ... }
I didn't find anything about that in your code but I was thinking about something like:
@Getter getUser(id: string) { ... }
Or maybe I missed something?
Thank you,
The text was updated successfully, but these errors were encountered:
you return a function from getter
get getUser() { return function (id: string) { /* ... */ } }
Sorry, something went wrong.
This should be in the documentation :)
No branches or pull requests
Hi @championswimmer 馃槂
I was wondering if there is a way with your plugin to define a method with parameters as a getter?
get getUser() { ... }
worksget getUser(id: string) { ... }
does not work since the ES6 syntax does not allow get methods to have parametersI didn't find anything about that in your code but I was thinking about something like:
Or maybe I missed something?
Thank you,
The text was updated successfully, but these errors were encountered: