Open strayer opened 6 years ago
Thanks for the report!
I think I've run into something similar when annotating function types in signatures and I wasn't able to fix it there. I'm afraid this might be similar but I'll have a look.
The way I approach this now is really hackish in that it "overrides" some of the internal js2 methods but at times there is no good extension point for that.
I would like to participate in the js2-mode
project a bit more and refactor it such that modes like this have easier time extending the syntax.
Hey, thanks for looking into it! Too bad, arrow functions with return types are very common in our React Native projects :( I won't be able to help with this in code, sadly – while I know functional programming, emacs and elisp are still very new to me. If I can somehow help, please reach out to me!
It seems like this code is not working properly:
The reported error is
missing ; before statement
.