tsc 7.0.2 --strict: string passed to number parameter -> error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts2345.ts containing: function f(x:number){} f("a"); export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.