Skip to content

.pipe fn type overloads no longer support using spread arguments #3989

@rkirov

Description

@rkirov

Bug Report

Current Behavior
After #3945, the following is now a type error:

of(1, 2, 3).pipe(...[map((x) => x)]);

error TS2557: Expected at least 0 arguments, but got 0 or more.

Arguably, this is TS error as witnessed by the odd error msg.

Possible Solution
Not sure if it is possible to have the good behaviors #3945 introduced in terms of error reporting and passing spread args.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions