Types are inferred too narrow from template strings in a readonly object starting from TypeScript 4.7 #49762
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Bug Report
Credit: Translate from this tweet by @MH4GF
Version & Regression Information: This changed between versions 4.6 and 4.7
Code: Playground link with relevant code
Actual behavior:
ary1
inferred as"prefixfoo"[]
Expected behavior:
ary1
inferred asstring[]
The text was updated successfully, but these errors were encountered: