E0240: '!' is not allowed on methods
In TypeScript, !
after a field name indicates a definite assignment
assertion. Because !
only applies to fields, is a syntax error to write !
after a method name:
To fix this error, remove the !
:
Introduced in quick-lint-js version 2.6.0.