#3989·rxjs

.pipe fn type overloads no longer support using spread arguments

Author: rkirovCreated Aug 3, 2018Updated Jul 25, 2026
Labelsbug

Bug Report

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

typescript
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.