# tsc 7.0.2 --strict: string passed to number parameter -> error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-string-passed-to-number-parameter-error-ts2345-argument-of-type-string-is-not-2d580c2e8e34
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: typescript, tsc, ts2345

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