Argument of Type ‘number’ Is Not Assignable to Parameter of Type ‘string’ (TS2345)
The error argument of type ‘number’ is not assignable to parameter of type ‘string’ (TS2345) means a number went into a string parameter. Convert it with String(), or widen the parameter to string | number: I ran all of this on TypeScript 7.0.2 and Node.js v22.22.2 in strict mode, so the error text below is … Read more >>









