Whose Error Is It?
TypeScript printed this
error TS2322: Type 'string' is not assignable to type 'number'.
What it meansYou assigned or passed a string value where TypeScript expects a number, and the type checker does not convert between the two.
The first thing to checkCommon sources are form inputs, query params, and env vars, which are always strings; convert with Number() or parseInt and handle NaN results.