Open iccir opened 5 years ago
I investigated this when trying to fix #159 and #160, but failed to come up with a safe solution for all cases. JavaScript's use of cover grammars (see section 5.1.4) make this a complex task - it's likely not worth the effort, but I wanted to document the issue.
As of #160, we support annotations on arrow function parameters when parentheses are used:
We don't support the following annotations:
Ideally, we'd match TypeScript's support and allow all of the above.