Closed
Description
When adding : unknown
to the error
callback argument of the following example, invalid code is produced:
import { throwError, catchError } from 'rxjs';
throwError(new Error('Kaboom!')).pipe(
catchError((error, caught) => console.error(error)),
);
Invalid output:
import { throwError, catchError } from 'rxjs';
throwError(new Error('Kaboom!')).pipe(
catchError(((error: unknown), caught) => console.error(error)),
);
This was reported and fixed in the smarttools fork: DaveMBush/eslint-plugin-rxjs#176