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