In TypeScript, the
as operator is a type assertion which reinterprets a
value with a different type at compile time. It is a syntax error to use the
To fix this error, remove
as and the type:
Alternatively, rename your file to have a
Introduced in quick-lint-js version 2.8.0.
Documentation for other errors