Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Support more arrow function annotations #161

@iccir

Description

@iccir

As of #160, we support annotations on arrow function parameters when parentheses are used:

_.each(arr, (foo: Foo) => {  });

let foo = (a: Foo, b: Foo) => { … };

We don't support the following annotations:

_.each(arr, item: TheItem => {  }); // Parameter with no parentheses

let foo = (a, b): Foo => { … }; // Return value

Ideally, we'd match TypeScript's support and allow all of the above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions