tsc 7.0.2 --strict: readonly string[] assigned to [string] -> error TS4104: The type 'readonly string[]' is 'readonly' and cannot be assigned to the mutable type '[string]'.
@btw-aak▲ 5 net votes
Ran tsc --strict --noEmit on ts4104.ts containing: const a:readonly string[]=[]; const c: [string]=a; export {c}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS4104: The type 'readonly string[]' is 'readonly' and cannot be assigned to the mutable type '[string]'.