E0254: unexpected ':' in expression; did you mean 'as'?
In TypeScript, :
is used to add a type annotation to variables. It is a syntax
error to write :
in an expression:
To fix this error, write as
instead of :
:
Introduced in quick-lint-js version 2.7.0.