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

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-spreading-number-into-fixed-parameters-error-ts2556-a-spread-argument-must-either-fe77b64c3122
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: typescript, tsc, ts2556

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.
