TS2574
A rest element type must be an array type.
Broken Code ❌
type Operation = '+' | '-';
type Calculation = [Operation, ...number];Fixed Code ✔️
Simply turn ...number into ...number[]:
type Operation = '+' | '-';
type Calculation = [Operation, ...number[]];