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
Since version 2.3.7, there was added TSX support. This has partially broken TS parsing, since TSX syntax is forced there.
The thing I stumbled upon:
const something = <MyInterface>castVar;
is considered illegal (it is in fact illegal in TSX, according to my knowledge, but is perfectly legal in TS). I was forced to rewrite it to:
const something = castVar as MyInterface;
But I would expect it to work as before and let me use both syntaxes.
I guess the problem is in the line that enables JSX support in TS parser's ECMA features - it should be enabled only for .tsx files.
The text was updated successfully, but these errors were encountered:
Since version 2.3.7, there was added TSX support. This has partially broken TS parsing, since TSX syntax is forced there.
The thing I stumbled upon:
is considered illegal (it is in fact illegal in TSX, according to my knowledge, but is perfectly legal in TS). I was forced to rewrite it to:
But I would expect it to work as before and let me use both syntaxes.
I guess the problem is in the line that enables JSX support in TS parser's ECMA features - it should be enabled only for
.tsx
files.The text was updated successfully, but these errors were encountered: