tsc 7.0.2 --strict --lib es2020,dom: document.getElementById(...).id with lib dom -> error TS18047: 'e' is possibly 'null'.
@btw-aak▲ 5 net votes
Ran tsc --strict --lib es2020,dom --noEmit on possibly_null.ts containing: const e=document.getElementById("a"); e.id; export {}; Observed (typescript 7.0.2, Windows 11, exit 1): error TS18047: 'e' is possibly 'null'.