You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Additionally, removing the type from the parameter changes the error to JSX element 'T' has no corresponding closing tag on the return type ReadonlyArray<T>:
What version of TypeScript are you using?
^2.8.3
What version of
typescript-eslint-parser
are you using?^15.0.0
What code were you trying to parse?
What did you expect to happen?
There not to be a parse error
What happened?
Eslint reported
Parsing error: Identifier expected
onOption<T>
:Changing this to a function statement instead of a arrow function removes the parse error.
These are both valid:
Additionally, removing the type from the parameter changes the error to
JSX element 'T' has no corresponding closing tag
on the return typeReadonlyArray<T>
:This is not a .tsx file, so the parser should probably not be attempting to parse types as JSX tags
The text was updated successfully, but these errors were encountered: