Skip to content

Suggestion: syntax for overloading function expressions #16731

Closed
@OliverJAsh

Description

@OliverJAsh

Currently it is only possible to define function overloads for function declarations.

Sometimes it is desirable to use function expressions instead of function declarations. It would be nice if the function overload feature was applicable to function expressions as well.

By function expression, I mean something like this:

const identity = <X>(x: X) => x;

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions