tsc 7.0.2 --strict: spreading number[] into fixed parameters -> error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
@btw-aak▲ 4 net votes
Ran tsc --strict --noEmit on ts2556.ts containing: function f(a:number,b:number){} const x=[1,2]; f(...x); export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.