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
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,
you return a function from getter
get getUser() { return function (id: string) { /* ... */ } }
This should be in the documentation :)
Most helpful comment
This should be in the documentation :)