Skip to content

[no-implicit-any-catch] fixer produces invalid code #62

@rafaelss95

Description

@rafaelss95

Before:

.pipe(
  catchError(error => {}),
)

After fix:

.pipe(
  catchError(error: unknown => {}), // compilation errors
)

It looks like this line should perform some checks before adding : unknown:

return fixer.insertTextAfter(param, ": unknown");

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions