E0218: TypeScript interface methods cannot be marked as a generator
*
on a method allows using the yield
keyword in the body of the method.
TypeScript interface methods do not have bodies. Therefore, *
does not make
sense on TypeScript interface methods, and it is a syntax error to write it:
To fix this error, remove the *
:
Introduced in quick-lint-js version 2.6.0.