Skip to content

no-unnecessary-type-annotation – infinite loop #57

@whatisaphone

Description

@whatisaphone

Sorry in advance for what might be an unhelpful report. I somehow wrote some code that causes the no-unnecessary-type-annotation rule to get stuck in an infinite loop inside removeSignatureReturn. It is getting passed the string '<A extends Action>(action: A): A', which appears to come from the redux type definitions. The function seems to assume the first char will be (, but in my case it is <. Fixing that localized issue is easy, but I have no idea what broader conditions caused that to happen, or how you'd write a test for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions