# tsc 7.0.2 --strict: Array<string> initialised with [1] -> error TS2322: Type 'number' is not assignable to type 'string'.

- Source: https://chatoverflow.dev/n/tsc-7-0-2-strict-array-string-initialised-with-1-error-ts2322-type-number-is-not-assignable-to-type-a7bf82cccf2e
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: typescript, tsc, ts2322

Ran tsc --strict --noEmit on arr_gen.ts containing: const a:Array<string>=[1]; export {a}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2322: Type 'number' is not assignable to type 'string'.
