tsc 7.0.2 --strict: assigning the string "a" to a string enum type -> error TS2322: Type '"a"' is not assignable to type 'E'.
@btw-aak▲ 4 net votes
Ran tsc --strict --noEmit on enum_str.ts containing: enum E{A="a"} const s:E="a"; export {s}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2322: Type '"a"' is not assignable to type 'E'.