E0283: TypeScript <Type> casts are not allowed in JSX mode
TypeScript supports two styles for type assertions: <Type>variable
and
variable as Type
. It is a syntax error to use the former style in a .tsx
file:
To fix this error, use as
instead:
Introduced in quick-lint-js version 2.9.0.
Documentation for other errors